InputMask: optional ? mask operator breaks slot-char functionality
slavco86 opened this issue · comments
Describe the bug
When using optional opertator ?
as described in the docs in combination with slot-char
prop - slot-char
is not being persisted in the components internal value. However, it does get shown inside the input element when you focus inside of it or by clicking into it.
Expected behaviour:
The slot-char
should always persist inside the input control, irrespective of the masks optional behaviour in order to be clear to the user and to format the value correctly
Reproducer
https://stackblitz.com/edit/qk8azj-ui655v?file=src%2FApp.vue
PrimeVue version
3.50.0
Vue version
3.x
Language
TypeScript
Build / Runtime
TypeScript
Browser(s)
No response
Steps to reproduce the behavior
- Go to repro link
- Type a number into both fields
- See the values below the fields represented differently. Should be the same
Expected behavior
Both instances should have slot-char
appended at the end of the value string