fix misspell on tabulator filtering

This commit is contained in:
Jordan Blasenhauer 2024-08-14 14:19:01 +02:00
parent fc935c197c
commit be65fa50b8
3 changed files with 5 additions and 5 deletions

View file

@ -96,8 +96,8 @@ function _baseSorter(aValue, bValue, params) {
function _sortButtonGroup(column, formatName) {
if (formatName !== "buttongroup") return;
column.sorter = (a, b, aRow, bRow, column, dir, params) => {
const aButtons = a.buttons;
const bButtons = b.buttons;
const aButtons = a?.buttons;
const bButtons = b?.buttons;
const aValue = aButtons.map((btn) => btn.data.text).join(" ") || "";
const bValue = bButtons.map((btn) => btn.data.text).join(" ") || "";
@ -241,6 +241,7 @@ function applyTableFilter(tableInstance, filters) {
}
filtersSend.push(filters);
}
tableInstance.setFilter(filtersSend);
}
@ -258,7 +259,6 @@ function overrideDefaultFilters() {
rowValue?.setting?.value ||
rowValue?.value?.toLowerCase() ||
rowValue?.text?.toLowerCase() ||
buttons ||
"";
return value;

View file

@ -331,7 +331,7 @@ body {
.select-dropdown-btn.normal,
.list-dropdown-btn.normal {
@apply my-0 px-2 py-2 text-sm leading-normal;
@apply my-0 px-2 py-1.5 text-sm leading-normal;
}
.select-dropdown-btn.sm,

File diff suppressed because one or more lines are too long