Open Doomce opened 2 hours ago
2.4.8
Label position in Select element depends on properties: labelPlacement="outside" and isMultiline={true}. With isMultiline={true}, the label is displayed inside select border.
Select
labelPlacement="outside"
isMultiline={true}
Code:
<Select labelPlacement={"outside"} label="User Properties" placeholder="Select properties" className="w-full" variant="bordered" selectedKeys={selection} items={properties} isMultiline={true} > {properties.map((prop) => ( <SelectItem key={prop} value={prop}> {prop} </SelectItem> ))} </Select>
Visualization:
Other way - without multiline Code:
<Select labelPlacement={"outside"} label="User Properties" placeholder="Select properties" className="w-full" variant="bordered" selectedKeys={selection} items={properties} isMultiline={false} > {properties.map((prop) => ( <SelectItem key={prop} value={prop}> {prop} </SelectItem> ))} </Select>
Also, This issue can be found in NextUI documentation:
No response
Label placement should not depend by isMultiline value (the label should be outside)
isMultiline
Windows
Chrome
ENG-1427 [BUG] - Label placement - "outside" conflicts with Multiline property in Select element
NextUI Version
2.4.8
Describe the bug
Label position in
Select
element depends on properties:labelPlacement="outside"
andisMultiline={true}
. WithisMultiline={true}
, the label is displayed inside select border.Code:
Visualization:
Other way - without multiline Code:
Also, This issue can be found in NextUI documentation:
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Select
elementlabelPlacement="outside"
property to the item.isMultiline={true}
property to the item.Expected behavior
Label placement should not depend by
isMultiline
value (the label should be outside)Screenshots or Videos
No response
Operating System Version
Windows
Browser
Chrome