Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translations prop being passed to the input control as a prop causing failure #10

Open
lankke opened this issue Mar 30, 2017 · 1 comment

Comments

@lankke
Copy link

lankke commented Mar 30, 2017

Hi guys

Currently I'm getting an issue when providing my own translation object to the MaskedField component:
vendor.js:24932 Warning: Unknown prop translations on <input> tag. Remove this prop from the element.

Here is my translation object:
let maskTranslation = { '-': /[\-\s0-9]/ };

And here is my MaskedField call:

<MaskedField ref="DurationField" className={classString} type="text" value={durationValue} placeholder={placeholder} mask={durMask} translations={maskTranslation} onChange={this.handleChange} readOnly={this.props.readOnly} />

I suspect that the this.props.translations prop is being passed to the input control that the MaskedField creates. Can anyone replicate this issue and let me know if the problem is as I expect or should I look for another problem?

@rylanc
Copy link
Contributor

rylanc commented Apr 26, 2017

I just published v1.0.1 which should fix all React warnings. Please try that version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants