suid icon indicating copy to clipboard operation
suid copied to clipboard

Select border/label overlap with empty MenuItem value

Open lukexor opened this issue 2 years ago • 1 comments

https://stackblitz.com/edit/hmmgyv?file=src%2FApp.tsx

image

Expected to have a white border around the label similar to when an item is selected with a non-empty value.

image

Digging in it seems like there's a max-width property on the legend component that is normally 100% but switches to 0.01px when the value property is empty.

lukexor avatar Nov 30 '23 20:11 lukexor

You can fix this by passing notched prop as true to Select component. @lukexor

Strange we need to pass label in two places here. One as prop to Select and one as child to InputLabel Somehow passing shrink as true to InputLabel should set notched to true on Select component

aseerkt avatar Dec 29 '23 17:12 aseerkt