Skip to content

Commit

Permalink
fix(AnalyticalTable): persist values and don't close the popover when…
Browse files Browse the repository at this point in the history
… typing within the filters-popover input field (#810)
  • Loading branch information
Lukas742 authored Oct 22, 2020
1 parent c0fac23 commit 45a6d8f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ export const ColumnHeaderModal = (props: ColumnHeaderModalProperties) => {
if (open) {
popoverInstance?.openBy(targetRef.current);
}
return () => {
popoverInstance?.close();
};
}, [open, targetRef.current, ref.current]);

const onAfterClose = useCallback(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export const DefaultFilterComponent: FC<any> = ({ column }) => {
},
[column.setFilter]
);
return <Input onInput={handleChange}>{column.filterValue}</Input>;
return <Input onInput={handleChange} value={column.filterValue} />;
};

0 comments on commit 45a6d8f

Please sign in to comment.