Dropdown: placeholder value
See original GitHub issueSteps
- Open codepen.
- Click on
Dropdown
element, it’s value will be set toCategory 1
- Click outside,
Dropdown
’s value will be againCategory
Expected Result
Until Dropdown
’s item will be selected, keep placeholder as Category
.
Actual Result
After you click on Dropdown
it changes value to first option.
Version
Latest.
Testcase
http://codepen.io/pzurek/pen/mRJMov
@levithomason I’m not sure that this behaviour is bug. Can you clarify?
Based on stackoverflow question.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How do I make a placeholder for a 'select' box? - Stack Overflow
Building upon MattW's answer, you can make the select placeholder option visible in the drop-down menu after a valid ...
Read more >How to Create a Placeholder for an HTML5 <select> Box
Here is the second method of adding a placeholder for your select box. First, you need to create your select items with the...
Read more >How to Make a Placeholder for a Select Box in HTML
Answer: Use the disabled and selected Attribute. There is no attribute like input's placeholder for select box dropdown. However, you can create similar...
Read more >How to make a placeholder for a 'select' box? - GeeksforGeeks
There is no placeholder attribute in 'select' tag but it can make the placeholder for a 'select' box. There are many ways to...
Read more >HTML Select Placeholder: How To Create It Using HTML
The HTML select placeholder is an attribute that does not exist, which means that you can not use the placeholder attribute with the...
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
@levithomason I reopened this issue because it wasn’t fixed and I want to pick up it.
I believe this is the expected behavior and in line with SUIR core: http://semantic-ui.com/modules/dropdown#dropdown
The difference we have is that the dropdown is not making
Category 1
active on blur, whereas, SUIR core would. We are also changing the placeholder rather than the text. This makes our interaction more jarring than SUIR core.Proposals, on selected (highlighted) item change:
selection
search
Dropdowns(I responded on SO as well)