FloatLabel: Float Label Doesn't Reset When Password Component is Cleared Programmatically #6969
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When using the
Password
component withFloatLabel
, programmatically clearing the password input successfully clears the input value, but the float label remains in the floated state.This issue does not occur when manually deleting the input using the keyboard. Additionally, using a regular
TextInput
withFloatLabel
works correctly for both programmatic and manual clearing, with the float label resetting as expected. The issue only appears withPassword
andFloatLabel
and programmatically clearing the input.Reproducer
https://stackblitz.com/edit/8sfkmah9-stttpk9k?file=src%2FApp.vue
PrimeVue version
4.2.5
Vue version
4.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
Password
component. Observe that the float label moves above the input as expected.Expected behavior
Clicking the "Clear" button should clear the password input and reset the float label to its initial position (i.e., not floated).
The text was updated successfully, but these errors were encountered: