|
@@ -60,7 +60,7 @@ class EditableSpan extends Component{
|
|
|
}
|
|
|
onChange(e){
|
|
|
e.stopPropagation();
|
|
|
- const {handleChange,boxMark,i,handleSearch,value,mainSaveText,mainIds,handleClear} = this.props;
|
|
|
+ const {handleChange,boxMark,i,handleSearch,noSearch,mainSaveText,mainIds,handleClear} = this.props;
|
|
|
const {labelVal,searchPre} = this.state;
|
|
|
const text1 = e.target.innerText || e.target.innerHTML;
|
|
|
// e.newValue IE浏览器DOMCharacterDataModified监听
|
|
@@ -88,7 +88,9 @@ class EditableSpan extends Component{
|
|
|
|
|
|
const that = this;
|
|
|
handleChange&&handleChange({text1,boxMark,i});
|
|
|
-
|
|
|
+ if(noSearch){
|
|
|
+ return;
|
|
|
+ }
|
|
|
//延迟搜索
|
|
|
clearTimeout(this.state.timer);
|
|
|
const timer = setTimeout(function(){
|