Select width
See original GitHub issuediv.mdc-select
seems to have a static width of only 9px for some reason. For this reason, it does not show the currently selected value (or the hintText).
I can inspect the element and set the width higher and see the span correctly, but when I interact the the dropdown it sets it back to 9px.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
html - How can change width of dropdown list? - Stack Overflow
This code works on IE 6 but not in Mozilla Firefox (latest version). Can anybody please tell me how I can decrease the...
Read more >Controlling the width of SELECT lists - BlooBerry
The default width of a SELECT form control is usually dependent on the width of the widest OPTION item in the list; the...
Read more >How To Set Width Of Select Option In HTML - TalkersCode.com
Step By Step Guide On How To Set Width Of Select Option In HTML :- · First, we write <! · Secondly, the...
Read more >How to Expand Select Box to its Default Width on Focus Using ...
Answer: Use the CSS :focus pseudo-class. By default the size of the <select> element is depend on the size of the largest <option>...
Read more >How to adjust the width of a HTML combobox (Drop down box ...
How to adjust the width of a HTML combobox (Drop down box or Select box) · You can use external CSS (Cascading Style...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems like
selectedIndex
coming from props was causing an issue. Once I changed that from an Immutable.js structure to a plain JS object & addedstyle={{ minWidth: '100px' }}
to theSelect
element, everything is working as expected.Thanks a ton @prateekbh !!
so here are two things: a.) looks like you cannot instantiate an empty
Select
and that might be the case since you are passing it through props, please check. I’ll also try asking this tomdc-web
team b.) for the width, I guess you can specify themin-width
or a fixed width.