fix: Keyboard handlers should not be considered while composing
This commit is contained in:
@@ -45,6 +45,10 @@ function InputSearchPage({
|
||||
|
||||
const handleKeyDown = React.useCallback(
|
||||
(ev: React.KeyboardEvent<HTMLInputElement>) => {
|
||||
if (ev.nativeEvent.isComposing) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (ev.key === "Enter") {
|
||||
ev.preventDefault();
|
||||
history.push(
|
||||
|
||||
Reference in New Issue
Block a user