You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would make sense to make the MaskedTextInput component fallback to the normal TextInput behaviour when the mask property is undefined. This would mean that anything written in the input would be passed on in both text and rawText.
I can't see a real-world usage for this and don't think that is a good option because if you need to use an input without a mask, is most recommended to use TextInput, and avoid MaskedtTextInput logic.
But of course that it can be implemented because this tends more to help the DX than to make it worse
I think you're right about that MaskedTextInput should not replace TextInput completely. However I do think the behaviour as it is right know, is a bit weird. I don't see why any masking should happen if the mask prop is undefined. If masking should always happen when using the component, then I believe the mask should be a required prop, instead of an optional.
Describe the Feature
I think it would make sense to make the MaskedTextInput component fallback to the normal TextInput behaviour when the
mask
property is undefined. This would mean that anything written in the input would be passed on in bothtext
andrawText
.Possible Implementations
The text was updated successfully, but these errors were encountered: