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.