Dropdown width grow to the size of the selected item?

can dropdown width grow to the size of the selected item when the dropdown is open ?

image

I had trouble getting my dropdown to expand correctly so what I did in Perspective for a similar situation is change the dropdownOptionStyle property whiteSpace to normal. This causes the text to wrap around instead.

1 Like

Thanks for the tips !

If you need the dropdown to remain the same size, but have options menu grow to the size of the option. You can add the following to your css stylesheet.

.ia_dropdown__optionsModal {
	width: auto !important;
}
3 Likes