mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2024-04-21 12:32:08 +00:00
bugfix (password): fix textarea as password issue - #94
This commit is contained in:
@@ -10,7 +10,7 @@ export class Textarea extends React.Component {
|
||||
|
||||
render() {
|
||||
let className = "component_textarea";
|
||||
if(this.refs.el && this.refs.el.value.length > 0){
|
||||
if((this.refs.el !== undefined && this.refs.el.value.length > 0) || (this.props.value !== undefined && this.props.value.length > 0)){
|
||||
className += " hasText";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user