Skip to content

Commit

Permalink
PMM-11963 Trigger filter form change only on value change
Browse files Browse the repository at this point in the history
  • Loading branch information
matejkubinec committed Jul 26, 2023
1 parent 045be9d commit a7fb0bf
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,14 @@ export const Filter = ({ columns, rawData, setFilteredData, hasBackendFiltering
)}
</div>
)}
{!hasBackendFiltering && <FormSpy onChange={(state) => onFormChange(state.values)}></FormSpy>}
{!hasBackendFiltering && (
<FormSpy
subscription={{
values: true,
}}
onChange={(state) => onFormChange(state.values)}
></FormSpy>
)}
</form>
)}
/>
Expand Down

0 comments on commit a7fb0bf

Please sign in to comment.