In vuejs2 app having select input with rather big options list it breaks design of my page on extra small devices. Searching in net I found “size” property, but that not what I I need : I want to have dropdown selection, which is the default. Are there some othr decision, maybe with css to set max-height of dropdown selection area.
Thank you!
CodePudding user response:
Unfortunately, you cannot chant the height of a dropdown list (while using <select>
).
It is confirmed here.
you can build it yourself using div
s & v-for
(assuming you get the list from an outsource) and then you can style it as you wish.
apologies for barring bad news.
CodePudding user response:
Dropdown height is managed by the browser. check this here is your answer, enter link description here