primereact icon indicating copy to clipboard operation
primereact copied to clipboard

FloatLabel: Not returning inside of an empty input on a Calendar with mask

Open vasivuk opened this issue 2 months ago • 1 comments

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.

Image

Reproducer

https://stackblitz.com/edit/vitejs-vite-der3y97g?file=src%2FApp.tsx

System Information

primereact: 10.9.7

Steps to reproduce the behavior

  1. Clear the date on the supplied example.

Expected behavior

FloatLabel should return to the empty input field that is not focused.

Image

vasivuk avatar Nov 07 '25 09:11 vasivuk

It was working on 10.9.2, so it seems that pull request https://github.com/primefaces/primereact/pull/7779 introduced this bug.

vasivuk avatar Nov 07 '25 13:11 vasivuk