Skip to content

Commit

Permalink
style: format files to satisfy prettier check
Browse files Browse the repository at this point in the history
Signed-off-by: Antonette Caldwell <[email protected]>
  • Loading branch information
nebula-aac committed Feb 7, 2024
1 parent 0f625ba commit d0a2cb9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/custom/TypingFilter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ export function TypingFilter({ filterSchema, handleFilter, autoFilter = false }:
if (!inputFieldRef.current) {
return;
}

const inputField = inputFieldRef.current; // Copy the value to a variable

const handleKeyDown = (e: KeyboardEvent) => {
if (e.key === 'Enter') {
// Perform nullish check before accessing inputField.value
Expand All @@ -89,13 +89,13 @@ export function TypingFilter({ filterSchema, handleFilter, autoFilter = false }:
setAnchorEl(null);
}
};

inputField?.addEventListener('keydown', handleKeyDown);

return () => {
inputField?.removeEventListener('keydown', handleKeyDown);
};
}, [filterSchema, handleFilter]);
}, [filterSchema, handleFilter]);

React.useEffect(() => {
if (autoFilter && filterState.state === FilteringState.SELECTING_FILTER) {
Expand Down

0 comments on commit d0a2cb9

Please sign in to comment.