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
Complete the pin code with a value like 1, 2, 3, 4
Click reset button
Placeholders are not displayed
Describe the bug
PinInputInput placeholders are not displayed anymore after resetting PinInputRoot value with [].
I also tried to set values like ['', '', '', ''], but the same behaviour happened.
When an user focus the input, placeholder attribute is set to empty string, and only revert to its initial value (given in PinInputRoot prop) on blur event:
But the placeholder is never restored when pin value is cleared programmatically like just pin.value = [].
I understand why this was done that way: hide the placeholder when user focus the input and they are ready to types a character. I can see this behaviour in different pin input component across different ui library. I also see that sometimes placeholder is kept and not hidden (eg: in Disney+ for profile pin code). So IMO this behaviour should be an opt-in option.
Environment
Link to minimal reproduction
https://stackblitz.com/edit/nuxt-starter-nzrqbxnu?file=app.vue,package.json
Steps to reproduce
Describe the bug
PinInputInput
placeholders are not displayed anymore after resettingPinInputRoot
value with[]
.I also tried to set values like
['', '', '', '']
, but the same behaviour happened.Minimal code reproduction:
Expected behavior
Placeholders should be displayed.
Context & Screenshots (if applicable)
The text was updated successfully, but these errors were encountered: