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
Describe the bug
I am using react-imask with lazy set to false to make the placeholder/pattern always visible. This worked fine until react-imask@7.5.0 and imask@7.5.0, but with 7.6.0 the placeholder is not shown when mounting the masked input. It appears after at least one character has been entered or turning lazy on and off again.
Expected behavior
When setting lazy to false, I expect to see the placeholder/pattern at any time. I expect to see it after mounting, the first render and entering a value.
As a work around, I've added a placeholder on the actual input that matches what the mask appears like. But it seems redundant. Indeed lazy false used to work more elegantly in the past, just as this issue describes.
Describe the bug
I am using
react-imask
withlazy
set tofalse
to make the placeholder/pattern always visible. This worked fine untilreact-imask@7.5.0
andimask@7.5.0
, but with7.6.0
the placeholder is not shown when mounting the masked input. It appears after at least one character has been entered or turninglazy
on and off again.To Reproduce
init imask
. Therefore I think it's not react related.Expected behavior
When setting
lazy
tofalse
, I expect to see the placeholder/pattern at any time. I expect to see it after mounting, the first render and entering a value.Environment:
Additional context
Screen.Recording.2024-04-24.at.11.58.14.mov
Screen.Recording.2024-04-24.at.11.59.14.mov
The text was updated successfully, but these errors were encountered: