primereact
primereact copied to clipboard
FloatLabel: Not returning inside of an empty input on a Calendar with mask
Describe the bug
When FloatLabel is paired with Calendar that has an initial state and a mask prop, removing the value doesn't bring back FloatLabel inside the input field. It keeps standing on top of an empty field.
Reproducer
https://stackblitz.com/edit/vitejs-vite-der3y97g?file=src%2FApp.tsx
System Information
primereact: 10.9.7
Steps to reproduce the behavior
- Clear the date on the supplied example.
Expected behavior
FloatLabel should return to the empty input field that is not focused.
It was working on 10.9.2, so it seems that pull request https://github.com/primefaces/primereact/pull/7779 introduced this bug.