React 15 Warning: Unknown prop `placeholderChar` on <input> tag.
dbrans opened this issue · comments
Derek Brans commented
Remove this prop from the element. For details, see https://fb.me/react-unknown-prop.
Chris Basham commented
#59 provided this fix, and it was released as v3.2.1
. However, the compiled npm build of v3.2.1
in ./lib/index.js
didn't pick up the change. It looks like:
render: function render() {
var _this = this;
var _props = this.props;
var mask = _props.mask;
var formatCharacters = _props.formatCharacters;
var size = _props.size;
var placeholder = _props.placeholder;
var props = _objectWithoutProperties(_props, ['mask', 'formatCharacters', 'size', 'placeholder']);
var patternLength = this.mask.pattern.length;
return React.createElement('input', _extends({}, props, {
ref: function (r) {
return _this.input = r;
},
maxLength: patternLength,
onChange: this._onChange,
onKeyDown: this._onKeyDown,
onKeyPress: this._onKeyPress,
onPaste: this._onPaste,
placeholder: placeholder || this.mask.emptyValue,
size: size || patternLength,
value: this._getDisplayValue()
}));
}
Derek Brans commented
+1
Dustan Kasten commented
rebuilt and republished. Apologies.
Kirill Lebedev commented
It reproduces again in 3.3.2
Leo Ribeiro commented
I'm having this on 3.3.3, should I update?