zhouna пре 6 година
родитељ
комит
58cffc89d5
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/components/NumberDrop/index.jsx

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

@@ -86,7 +86,7 @@ class NumberDrop extends Component{
     const val = e.target.innerText.replace(/^\s*/,'');
     const {handleSelect,ikey,suffix,prefix,mainSaveText,placeholder} = this.props;
     const text = val===placeholder?'':val;
-    //target.innerText = '';      //避免出现重复输入值
+    e.target.innerText = '';      //避免出现重复输入值
     handleSelect&&handleSelect({ikey,text,suffix,prefix,mainSaveText});
   }
   handleSpanInp(e){    //数字框输入事件