MM-51676 - korean chars create duplicate categories (#23839)
* MM-51676 - korean chars create duplicate categories * use isProcessing as a property instead of state; move validation of isComposing to generic modal
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8fe4c5376f
Коммит
af3b70b606
@@ -95,6 +95,9 @@ export class GenericModal extends React.PureComponent<Props, State> {
|
||||
|
||||
private onEnterKeyDown = (event: React.KeyboardEvent<HTMLDivElement>) => {
|
||||
if (event.key === 'Enter') {
|
||||
if (event.nativeEvent.isComposing) {
|
||||
return;
|
||||
}
|
||||
if (this.props.autoCloseOnConfirmButton) {
|
||||
this.onHide();
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user