Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

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

@lankke

Description

@lankke

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions