diff --git a/CHANGELOG.md b/CHANGELOG.md index cb1f8dff7..982215a4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,8 +13,8 @@ Web UI version numbers should always match the corresponding version of LBRY App * ### Changed - * - * + * Improved ability to style FormFields and form field labels + * Refactored Publish page to use form field changes * ### Fixed diff --git a/js/component/form.js b/js/component/form.js index 1d2b63bf6..33e4aee66 100644 --- a/js/component/form.js +++ b/js/component/form.js @@ -22,9 +22,12 @@ var FormField = React.createClass({ } }, componentWillMount: function() { - if (['text', 'radio', 'checkbox', 'file'].indexOf(this.props.type) != -1) { + if (['text', 'radio', 'checkbox', 'file'].includes(this.props.type)) { this._element = 'input'; this._type = this.props.type; + } else if (this.props.type == 'text-number') { + this._element = 'input'; + this._type = 'text'; } else { // Non field, e.g.