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 was trying to use the react-maskedinput library to handle entering percentages with a mask like: '111%'.
Ideally I'd like to not have any placeholderChar because 9% and 99% would both be valid values too.
I tried setting the DEFAULT_PLACEHOLDER_CHAR = '' and commenting out the validation error in InputMask.
Seems to work ok for my pattern but wondering if this will likely cause issues for other patterns?
The text was updated successfully, but these errors were encountered:
mdgbayly
changed the title
Any reason when blank placeholderChar not supported?
Question: Any reason when blank placeholderChar not supported?
Mar 8, 2016
mdgbayly
changed the title
Question: Any reason when blank placeholderChar not supported?
Question: Any reason why blank placeholderChar not supported?
Mar 8, 2016
Seems to work ok for my pattern but wondering if this will likely cause issues for other patterns?
My opinion is that it is up to the consumer to set a placeholderChar that looks good with their pattern, it is not up to the library to restrict placeholderChars on the off-chance that it may not look good.
I was trying to use the react-maskedinput library to handle entering percentages with a mask like: '111%'.
Ideally I'd like to not have any placeholderChar because 9% and 99% would both be valid values too.
I tried setting the DEFAULT_PLACEHOLDER_CHAR = '' and commenting out the validation error in InputMask.
Seems to work ok for my pattern but wondering if this will likely cause issues for other patterns?
The text was updated successfully, but these errors were encountered: