primevue icon indicating copy to clipboard operation
primevue copied to clipboard

validateOnBlur does not work for Password component (maybe other components as well?)

Open mch-outsight opened this issue 6 months ago • 0 comments

Describe the bug

In PrimeVue 4.3.5, the validateOnBlur event is not properly triggered anymore in Password component.

It used to work in PrimeVue 4.3.4 though, after investigating a bit I think this bug was introduced since https://github.com/primefaces/primevue/commit/9c320f55349d2693f120a61b0bd89b8737c229f0

Pull Request Link

No response

Reason for not contributing a PR

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

Other Reason

No response

Reproducer

https://stackblitz.com/edit/17gmapt5

Environment

Ubuntu 24.04

Vue version

3.5.16

PrimeVue version

4.3.5

Node version

v20.19.2

Browser(s)

Google Chrome, Version 136.0.7103.92 (Official Build) (64-bit)

Steps to reproduce the behavior

  1. Go to https://primevue.org/password/#forms to check the sample code
  2. Add validateOnBlur and :validate-on-value-update="false" attributes to Form component
  3. Focus on the Password component's input text and write some faulty stuff
  4. Unfocus the input text (i.e. blur)
  5. Observe the error messages not being displayed

Expected behavior

The blur event should be triggered properly and error messages should be displayed

mch-outsight avatar Jun 11 '25 09:06 mch-outsight