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 clears the initial value when the unmask attribute is active and disabled is set to active #7107

Open
4 tasks
martienKroon opened this issue Jan 16, 2025 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@martienKroon
Copy link

Describe the bug

The InputMask component removes the initial value when the unmask attribute is enabled and the disabled property is set to true.

I'm creating a form with some preloaded data.
During the submission of the form, the fields are disabled by setting the disabled property to true. However, due to this bug, the values of some fields using InputMask are cleared when the fields are disabled.

Image

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/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

  1. Go to the App.vue
  2. Set the disabled attribute on the InputMask to true
  3. See that the value is no longer displayed

Expected behavior

I expected the value to still be visible after the InputMask was disabled.

@martienKroon martienKroon added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant