|
@@ -52,7 +52,7 @@ class Textarea extends Component {
|
|
}
|
|
}
|
|
componentDidMount(){
|
|
componentDidMount(){
|
|
const {value} = this.props;
|
|
const {value} = this.props;
|
|
- if(value){
|
|
|
|
|
|
+ if(value && value.trim()){
|
|
this.$dom.current.innerText = value||'';
|
|
this.$dom.current.innerText = value||'';
|
|
this.$dom.current.nextSibling.innerText = '';
|
|
this.$dom.current.nextSibling.innerText = '';
|
|
}else{
|
|
}else{
|