We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dd3050 commit 9ff6d2aCopy full SHA for 9ff6d2a
src/widgets/EditableLabel.js
@@ -53,6 +53,7 @@ class EditableLabel extends React.Component {
53
}
54
55
render() {
56
+ const placeholder = this.props.value.length > 0 ? false : this.props.placeholder;
57
return (
58
<div
59
ref={ref => (this.refDiv = ref)}
@@ -62,8 +63,8 @@ class EditableLabel extends React.Component {
62
63
onBlur={this.onBlur}
64
onInput={this.onTextChange}
65
onKeyDown={this.onKeyDown}
- placeholder={this.props.value.length == 0 ? false : this.props.placeholder}
66
- >{this.props.value}</div>
+ placeholder={placeholder}
67
+ />
68
)
69
70
0 commit comments