Browse Source

流程弹窗搜索栏清空

XuZinan 2 years ago
parent
commit
4826bef31a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/pages/Detail/FlowModal.js

+ 5 - 1
src/pages/Detail/FlowModal.js

@@ -401,7 +401,11 @@ function FlowModal(props) {
         destroyOnClose
         title="流程图"
         visible={visible}
-        onCancel={onClose}
+        onCancel={() => {
+          setSelectType(SELECT_TYPE.NAME);
+          setInputValue('');
+          onClose();
+        }}
         footer={false}
         width="98%"
         // bodyStyle={{ maxHeight: '660px', overflow: 'auto' }}