Event handlers and Flex changes
This commit is contained in:
@@ -181,6 +181,11 @@ export const Computer = React.memo(() => {
|
||||
}));
|
||||
}).then(() => {
|
||||
loadPage(0, 'all');
|
||||
getState('_events')?.dispatchEvent?.(
|
||||
new CustomEvent('onColumnSorted', {
|
||||
detail: { cols: colSort },
|
||||
})
|
||||
);
|
||||
});
|
||||
}, [colSort]);
|
||||
|
||||
@@ -192,6 +197,11 @@ export const Computer = React.memo(() => {
|
||||
if (JSON.stringify(refLastFilters.current) !== JSON.stringify(colFilters)) {
|
||||
loadPage(0, 'all');
|
||||
refLastFilters.current = colFilters;
|
||||
getState('_events')?.dispatchEvent?.(
|
||||
new CustomEvent('onColumnFiltered', {
|
||||
detail: { filters: colFilters },
|
||||
})
|
||||
);
|
||||
}
|
||||
}, [colFilters]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user