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) {