primevue
primevue copied to clipboard
validateOnBlur does not work for Password component (maybe other components as well?)
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
- Go to https://primevue.org/password/#forms to check the sample code
- Add
validateOnBlurand:validate-on-value-update="false"attributes toFormcomponent - Focus on the
Passwordcomponent's input text and write some faulty stuff - Unfocus the input text (i.e. blur)
- Observe the error messages not being displayed
Expected behavior
The blur event should be triggered properly and error messages should be displayed