Skip to content

Commit ff5cf65

Browse files
author
杨国璇
committed
fix: row expand department editor
1 parent 1524212 commit ff5cf65

File tree

1 file changed

+1
-1
lines changed
  • src/RowExpandEditor/RowExpandDepartmentEditor

1 file changed

+1
-1
lines changed

src/RowExpandEditor/RowExpandDepartmentEditor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function RowExpandDepartmentEditor(props) {
4040
function onKeyDown(e) {
4141
if (e.keyCode === KeyCodes.Enter && props.isEditorFocus && !showEditor) {
4242
setShowEditor(true);
43-
} else if (e.keyCode === KeyCodes.Escape) {
43+
} else if (e.keyCode === KeyCodes.Escape && showEditor) {
4444
e.stopPropagation();
4545
setShowEditor(false);
4646
departmentSelectContent.current.focus();

0 commit comments

Comments
 (0)