Skip to content

Commit

Permalink
Fix placeholder labels (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoco authored and alvaromb committed Sep 27, 2018
1 parent 4b50e60 commit 06ed6dd
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 06ed6dd

Please sign in to comment.