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 378bda2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ 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() === "placeholders") {
label = null;
} else if (Nil.is(label) && this.getAuto() === "labels") {
label = this.getDefaultLabel();
} else {
label =
Expand Down

0 comments on commit 378bda2

Please sign in to comment.