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
Этот коммит содержится в:
Pablo Andrés Vélez Vidal
2023-06-26 21:01:56 +02:00
коммит произвёл GitHub
родитель 8fe4c5376f
Коммит af3b70b606
3 изменённых файлов: 22 добавлений и 2 удалений

Просмотреть файл

@@ -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();
}