Skip to content

Commit

Permalink
Fix placeholder labels
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoco committed Sep 24, 2018
1 parent 4b50e60 commit 488ff1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class Component extends React.Component {

getLabel() {
let label = this.props.options.label || this.props.options.legend;
if (Nil.is(label) && this.getAuto() === "labels") {
if (Nil.is(label) && (this.getAuto() === "labels" || this.getAuto() === "placeholders")) {
label = this.getDefaultLabel();
} else {
label =
Expand Down

0 comments on commit 488ff1f

Please sign in to comment.