Explorar o código

修改清空后第一次点击键盘不触发click事件bug

zhouna %!s(int64=6) %!d(string=hai) anos
pai
achega
f6fec4a2b2
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/components/NumberDrop/index.jsx

+ 3 - 0
src/components/NumberDrop/index.jsx

@@ -81,6 +81,9 @@ class NumberDrop extends Component{
   }
   numInpBlur(e){        //数字框失焦,保存值到store中
     e.stopPropagation();
+    if(this.props.show){      //修改清空后第一次点击键盘不触发click事件bug
+      return;
+    }
     this.setState({
       hasSelect:false
     });