InputMask clears the initial value when the unmask attribute is active and disabled is set to active #7107
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
The
InputMask
component removes the initial value when theunmask
attribute is enabled and thedisabled
property is set totrue
.I'm creating a form with some preloaded data.
During the submission of the form, the fields are disabled by setting the
disabled
property totrue
. However, due to this bug, the values of some fields usingInputMask
are cleared when the fields are disabled.Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/giphgsrr?file=src%2FApp.vue
Environment
The issue seems to be introduced in PrimeVue version 4.1.0
Vue version
3.4.31
PrimeVue version
4.1.0
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
I expected the value to still be visible after the InputMask was disabled.
The text was updated successfully, but these errors were encountered: