Skip to content

Commit

Permalink
Fix Metric/Params selection dropdown search text disappears with left…
Browse files Browse the repository at this point in the history
… key (#45)
  • Loading branch information
fabiovincenzi authored Mar 4, 2024
1 parent faddcf6 commit d58fad2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/src/components/SelectFormPopper/SelectFormPopper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ const SelectFormPopper: React.FC<ISelectFormPopperProps> = ({
className,
classes,
}) => {
const handleKeyDown = (event) => {
if (event.key === 'ArrowLeft') {
event.stopPropagation();
}
};
return (
<Popper
id={id}
Expand Down Expand Up @@ -90,6 +95,7 @@ const SelectFormPopper: React.FC<ISelectFormPopperProps> = ({
...params.inputProps,
value: searchValue,
onChange: handleSearchInputChange,
onKeyDown: handleKeyDown,
}}
spellCheck={false}
placeholder='Search'
Expand Down

0 comments on commit d58fad2

Please sign in to comment.