Skip to content

Commit

Permalink
refactor(inputsearch): turn autocomplete off + replace deprecated onK…
Browse files Browse the repository at this point in the history
…eyPress with onKeyDown
  • Loading branch information
masoudmanson committed Sep 21, 2023
1 parent c4096a8 commit 58e8be7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/components/src/core/InputSearch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ const InputSearch = forwardRef<HTMLDivElement, InputSearchProps>(
sdsStyle={sdsStyle}
sdsStage={hasValue ? "userInput" : "default"}
onChange={handleChange}
onKeyPress={handleKeyPress}
onKeyDown={handleKeyPress}
intent={intent}
autoComplete="off"
{...rest}
/>
</>
Expand Down

0 comments on commit 58e8be7

Please sign in to comment.