Browse Source

数字组件ie8输入报错参数无效bug修改

zhouna 6 năm trước cách đây
mục cha
commit
4ca59db29b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
-    e.target.innerText = '';      //避免出现重复输入值
+    //target.innerText = '';      //避免出现重复输入值
     handleSelect&&handleSelect({ikey,text,suffix,prefix,mainSaveText});
   }
   handleSpanInp(e){    //数字框输入事件