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 862c5dc commit b91a1e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/tree-select/search-overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const SearchOverlay = ({ options, onChange }: SearchOverlayProps) => {
'text-gray-900 cursor-pointer hover:bg-navy-50': !isSelected && !disabled,
})}
key={key}
onClick={getHandleChange(key as string, disabled)}
onClick={!disabled && getHandleChange(key as string)}
>
{matchingParts.map(({ value, isMatch }, i) => {
return (
Expand Down

0 comments on commit b91a1e9

Please sign in to comment.