Skip to content

Commit

Permalink
Update client/src/components/tree-select/search-overlay.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: David Inga <davidsingal@users.noreply.github.com>
  • Loading branch information
2 people authored and David Inga committed May 18, 2023
1 parent b91a1e9 commit f198c91
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/src/components/tree-select/search-overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ interface SearchOverlayProps {

const SearchOverlay = ({ options, onChange }: SearchOverlayProps) => {
const getHandleChange = useCallback(
(value: TreeSelectOption['value'], disabled?: boolean) => () => {
if (disabled) return;
onChange(value);
},
(value: TreeSelectOption['value']) => onChange(value),
[onChange],
);

Expand Down

0 comments on commit f198c91

Please sign in to comment.