|
@@ -219,8 +219,8 @@ class NumberDrop extends Component{
|
|
|
e.stopPropagation();
|
|
|
}
|
|
|
handleMouseDown(){
|
|
|
- const {i,setSelectArea,boxMark,show}= this.props;
|
|
|
- !show&&setSelectArea({i,boxMark,dir:'start'});
|
|
|
+ const {i,setSelectArea,boxMark}= this.props;
|
|
|
+ setSelectArea({i,boxMark,dir:'start'});
|
|
|
}
|
|
|
componentDidMount(){
|
|
|
//设置最小宽度避免输入后宽度跳动
|
|
@@ -268,6 +268,7 @@ class NumberDrop extends Component{
|
|
|
style={{minWidth:'10px',display:'inline-block',textAlign:'center'}}
|
|
|
ref = {this.$span}
|
|
|
onkeyup={this.handleKeyDowm}
|
|
|
+ onmousedown={(e)=>e.stopPropagation()}
|
|
|
onBlur={this.numInpBlur}
|
|
|
onInput={this.handleSpanInp}
|
|
|
className={`${this.getSpanClass(nospecial)}`}
|