Prechádzať zdrojové kódy

显示多个其他史模块bug修改

zhouna 6 rokov pred
rodič
commit
824daa0712
1 zmenil súbory, kde vykonal 5 pridanie a 2 odobranie
  1. 5 2
      src/components/NumberDrop/index.jsx

+ 5 - 2
src/components/NumberDrop/index.jsx

@@ -256,8 +256,11 @@ class NumberDrop extends Component{
     const spanWidth = window.getComputedStyle(this.$span.current).width;
     this.$span.current.style.minWidth=spanWidth;
     //保存输入框dom以便聚焦
-    const {saveDoms} = this.props;
-    saveDoms&&saveDoms(this.$span);
+    const that = this;
+    setTimeout(function(){        //多个其他史/现病史bug修改
+      const {saveDoms} = that.props;
+      saveDoms&&saveDoms(that.$span);
+    })
   }
   render(){
     const {prefix,suffix,show,value,handleHide,allClick} = this.props;