Commit 5ba996d9 by fukai

修复IE11下兼容问题

parent af15b933
...@@ -459,7 +459,8 @@ class SNDBIC extends Component{ ...@@ -459,7 +459,8 @@ class SNDBIC extends Component{
this.state = {snd_bic:props.snd_bic,err_msg:this.props.err_msg} this.state = {snd_bic:props.snd_bic,err_msg:this.props.err_msg}
} }
onChange = val=>{ onChange = val=>{
if((!val && !this.state.snd_bic) || val == this.state.snd_bic)
return
let err_msg = validateRCV_BIC(val) let err_msg = validateRCV_BIC(val)
this.props.onChange(val,err_msg) this.props.onChange(val,err_msg)
...@@ -493,7 +494,8 @@ class RCVBIC extends Component{ ...@@ -493,7 +494,8 @@ class RCVBIC extends Component{
this.state = {rcv_bic:props.rcv_bic,err_msg:this.props.err_msg} this.state = {rcv_bic:props.rcv_bic,err_msg:this.props.err_msg}
} }
onChange = val=>{ onChange = val=>{
if((!val && !this.state.rcv_bic) || val == this.state.rcv_bic)
return
let err_msg = validateRCV_BIC(val) let err_msg = validateRCV_BIC(val)
this.props.onChange(val,err_msg) this.props.onChange(val,err_msg)
......
...@@ -10,6 +10,11 @@ export default class ZTextArea extends Component ...@@ -10,6 +10,11 @@ export default class ZTextArea extends Component
{ {
const rows = this.props.maxLength/this.props.cols const rows = this.props.maxLength/this.props.cols
let nval = e.target.value
let oldval = this.props.value
if((!oldval && ! nval) || nval== oldval)
return
replace2(this.eibs.refs.input,e.nativeEvent,rows,this.props.cols,this.props.value) replace2(this.eibs.refs.input,e.nativeEvent,rows,this.props.cols,this.props.value)
this.props.onChange && this.props.onChange(e) this.props.onChange && this.props.onChange(e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment