primefaces / primevue

Next Generation Vue UI Component Library

Home Page:https://primevue.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
Screenshot 2024-06-19 at 15 43 10

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

  1. Go to repro link
  2. Type a number into both fields
  3. 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