When using React Hook Form with default values. The float label still display inside the input field and it does not detect that input value have been filled. The default value is displayed in the Input Text field but now they are overlapping 'unfilled' float label and the value inside.
Reproducer
No response
PrimeReact version
10.6.6
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Use React Hook Form with Default values
Use Float Label for Input fields
You will notice that Float Label and the values are overlapping.
Expected behavior
When using default values, the float label should in 'filled' mode where the label should move to top of the input field.
Describe the bug
When using React Hook Form with default values. The float label still display inside the input field and it does not detect that input value have been filled. The default value is displayed in the Input Text field but now they are overlapping 'unfilled' float label and the value inside.
Reproducer
No response
PrimeReact version
10.6.6
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
When using default values, the float label should in 'filled' mode where the label should move to top of the input field.