Jelajahi Sumber

无殊选中状态遗留bug修改

zhouna 6 tahun lalu
induk
melakukan
9641e6a1c9
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 1
      src/components/SpreadDrop/index.jsx
  2. 1 0
      src/store/actions/otherHistory.js

+ 1 - 1
src/components/SpreadDrop/index.jsx

@@ -174,7 +174,7 @@ class SpreadDrop extends Component{
     const {handleConfirm,ikey,type,tagType,order,mainSaveText,copyType} = this.props;
     const params = Object.assign({},this.state,{ikey,type,tagType,order,mainSaveText,copyType});
     handleConfirm&&handleConfirm(params);
-	this.btnClickFlag = true;
+	  this.btnClickFlag = true;
     //点确定后隐藏弹窗
     this.props.handleHide();
   }

+ 1 - 0
src/store/actions/otherHistory.js

@@ -32,6 +32,7 @@ export const confirm = (state,action) =>{
   if(items.length==0&&nones){
     arr[ikey-1].value = newPreText;
     res.saveText[ikey-1] = newPreText;
+    res.selecteds[ikey] = null;       //无殊选中状态遗留bug修改
     res.update=Math.random();
     return res;
   }