Skip to content

Commit 45a6d8f

Browse files
authored
fix(AnalyticalTable): persist values and don't close the popover when typing within the filters-popover input field (#810)
1 parent c0fac23 commit 45a6d8f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/main/src/components/AnalyticalTable/ColumnHeader/ColumnHeaderModal.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@ export const ColumnHeaderModal = (props: ColumnHeaderModalProperties) => {
120120
if (open) {
121121
popoverInstance?.openBy(targetRef.current);
122122
}
123-
return () => {
124-
popoverInstance?.close();
125-
};
126123
}, [open, targetRef.current, ref.current]);
127124

128125
const onAfterClose = useCallback(

packages/main/src/components/AnalyticalTable/defaults/FilterComponent/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export const DefaultFilterComponent: FC<any> = ({ column }) => {
88
},
99
[column.setFilter]
1010
);
11-
return <Input onInput={handleChange}>{column.filterValue}</Input>;
11+
return <Input onInput={handleChange} value={column.filterValue} />;
1212
};

0 commit comments

Comments
 (0)