nextui
nextui copied to clipboard
[BUG] - Label position is affected by the height of the error message
HeroUI Version
2.8.5
Describe the bug
The combination of label's absolute positioning with top-1/2 and the nearest relative parent containing both the form element and the validation message makes it so the position of the label changes based on the number of lines in the error message.
Your Example Website or App
https://heroui.app/NUsmtqN
Steps to Reproduce the Bug or Issue
- Go to https://heroui.app/NUsmtqN
- Select anything but "Cat" in the select menu
- Observe the label shifting on top the select
Expected behavior
The label should stay above the select.
Screenshots or Videos
Operating System Version
macOS
Browser
Firefox
@wingkwong Can I try to solve this issue?
@IsDyh01 go ahead
@wingkwong When labelPlacement=outside and data-has-helper=true, I change the absolute positioning of the label to a relative positioning, just like isMultiline=true.