mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-05 22:38:48 +00:00
[Bugfix]: Allow firing onSearch event of Table widget irrespective of server-side search is set to true or false. (#2660)
* resolves onsearch event for cliendside search * removes un-used props
This commit is contained in:
parent
5c3d8ffa71
commit
9b285dacf5
1 changed files with 1 additions and 4 deletions
|
|
@ -7,7 +7,6 @@ export const GlobalFilter = ({
|
|||
setGlobalFilter,
|
||||
onComponentOptionChanged,
|
||||
component,
|
||||
serverSideSearch,
|
||||
onEvent,
|
||||
}) => {
|
||||
const count = preGlobalFilteredRows.length;
|
||||
|
|
@ -21,9 +20,7 @@ export const GlobalFilter = ({
|
|||
onChange(text);
|
||||
|
||||
onComponentOptionChanged(component, 'searchText', text).then(() => {
|
||||
if (serverSideSearch === true) {
|
||||
onEvent('onSearch', { component, data: {} });
|
||||
}
|
||||
onEvent('onSearch', { component, data: {} });
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue