insin / react-maskedinput

Masked <input/> React component

Home Page:http://insin.github.io/react-maskedinput/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React 15 Warning: Unknown prop `placeholderChar` on <input> tag.

dbrans opened this issue · comments

Remove this prop from the element. For details, see https://fb.me/react-unknown-prop.

#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()
    }));
  }

rebuilt and republished. Apologies.

It reproduces again in 3.3.2

I'm having this on 3.3.3, should I update?