Skip to content

Commit 9ff6d2a

Browse files
committed
[fixes #301] Placeholders are missing when adding a new card to a lane
1 parent 9dd3050 commit 9ff6d2a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/widgets/EditableLabel.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class EditableLabel extends React.Component {
5353
}
5454

5555
render() {
56+
const placeholder = this.props.value.length > 0 ? false : this.props.placeholder;
5657
return (
5758
<div
5859
ref={ref => (this.refDiv = ref)}
@@ -62,8 +63,8 @@ class EditableLabel extends React.Component {
6263
onBlur={this.onBlur}
6364
onInput={this.onTextChange}
6465
onKeyDown={this.onKeyDown}
65-
placeholder={this.props.value.length == 0 ? false : this.props.placeholder}
66-
>{this.props.value}</div>
66+
placeholder={placeholder}
67+
/>
6768
)
6869
}
6970
}

0 commit comments

Comments
 (0)