fix: Keyboard handlers should not be considered while composing
This commit is contained in:
@@ -260,6 +260,9 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) {
|
||||
const handleLinkInputKeydown = (
|
||||
event: React.KeyboardEvent<HTMLInputElement>
|
||||
) => {
|
||||
if (event.nativeEvent.isComposing) {
|
||||
return;
|
||||
}
|
||||
if (!props.isActive) {
|
||||
return;
|
||||
}
|
||||
@@ -441,6 +444,9 @@ function SuggestionsMenu<T extends MenuItem>(props: Props<T>) {
|
||||
};
|
||||
|
||||
const handleKeyDown = (event: KeyboardEvent) => {
|
||||
if (event.isComposing) {
|
||||
return;
|
||||
}
|
||||
if (!props.isActive) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user