From 5d5d1b2cbc327367589b9a61264ea796c6e5ec25 Mon Sep 17 00:00:00 2001 From: Brian Doyle Date: Wed, 28 Sep 2016 17:43:19 -0700 Subject: [PATCH] Added ability to override placeholderString --- FloatingLabel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FloatingLabel.js b/FloatingLabel.js index 5f18f65..dc728df 100644 --- a/FloatingLabel.js +++ b/FloatingLabel.js @@ -56,7 +56,8 @@ class FloatingLabel extends Textbox { {locals.label} - const placeholderString = (self.state.fieldFocused) ? '' : self.state.placeholderString || locals.label; + const placeholderString = (self.state.fieldFocused) ? '' : (locals.placeholder) ? locals.placeholder : self.state.placeholderString || locals.label; + return ( { if (locals.editable === false) {