diff --git a/src/text-field.jsx b/src/text-field.jsx index 6cefe0aa747f0b..c8a674f262f378 100644 --- a/src/text-field.jsx +++ b/src/text-field.jsx @@ -417,7 +417,13 @@ const TextField = React.createClass({ }, _getFontSize() { - return this.props.style && this.props.style.fontSize ? this.props.style.fontSize : 16; + if (this.props.style && this.props.style.fontSize) { + if (process.env.NODE_ENV !== 'production' && typeof this.props.style.fontSize !== 'number') { + console.warn('style.fontSize property does not support non-integer values'); + } + return this.props.style.fontSize; + } + return 16; }, _getRef() {