Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputMask: Unmask inside form without v-model #7376

Open
2 of 4 tasks
25Das opened this issue Mar 5, 2025 · 0 comments
Open
2 of 4 tasks

InputMask: Unmask inside form without v-model #7376

25Das opened this issue Mar 5, 2025 · 0 comments
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Milestone

Comments

@25Das
Copy link

25Das commented Mar 5, 2025

Describe the bug

InputMask unmask property does not work inside form without v-model.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/run?file=src%2FApp.vue

Environment

InputMask component form docs example on stackblitz.
https://primevue.org/inputmask/#forms

Vue version

3.2.45

PrimeVue version

4.3.1

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

  1. Open docs stackblitz InputMask component example with form

  • Masked value
  1. Set unmask property to InputMask component
  2. Fill input
  3. Click submit button
  4. Check values on onFormSubmit function parameters
  5. Find masked value

  • Unmasked value
  1. Declare custom ref variable
  2. Set v-model to InputMask component using custom variable
  3. Show custom variable value on template
  4. Fill input
  5. Find unmasked value

Expected behavior

Form state to be populated with accordingly handled value, if unmasked property is true then value on form state is unmasked on submit.

@25Das 25Das added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 5, 2025
@tugcekucukoglu tugcekucukoglu added Status: Pending Review Issue or pull request is being reviewed by Core Team and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Mar 7, 2025
@tugcekucukoglu tugcekucukoglu added this to the 4.3.2 milestone Mar 7, 2025
@github-project-automation github-project-automation bot moved this to Review in PrimeVue Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Pending Review Issue or pull request is being reviewed by Core Team
Projects
Status: Review
Development

No branches or pull requests

2 participants