InputMask: Dynamic mask change issue #3698
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When you try to change mask dynamically, nothing happen unless you rerender the component. This is not an expected behaviour. The reason seems to be the mask to be set on the onMounted hook inside the component.
Reproducer
https://codesandbox.io/s/primevue-input-mask-bug-c276yc
PrimeVue version
3.23.0
Vue version
3.x
Language
ALL
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
As seen on the codesanbox link, here are the steps:
Expected behavior
Mask should change whenever a binded value changes.
The text was updated successfully, but these errors were encountered: