From 378bda22a7ea19730ad5a92837047deeea52c052 Mon Sep 17 00:00:00 2001 From: Tony Coconate Date: Sat, 22 Sep 2018 00:31:31 -0500 Subject: [PATCH] Fix placeholder labels --- lib/components.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/components.js b/lib/components.js index 2cf4baaa..07f3c7e2 100644 --- a/lib/components.js +++ b/lib/components.js @@ -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 =