Multiple select placeholder when search is disabled
See original GitHub issueAt the moment, setting searchEnabled=false
on multiple selects removes the input, and therefore also removes the placeholder.
The component should be capable of having a placeholder when the search is disabled.
Approaches:
- Keep the search input when the component is disabled, but make it disabled. Seems the easiest approach. Not sure if it might have some problem with the sizing on the input.
- Place some sort of span instead of the search input when the search is disabled and nothing is selected. Maybe it’s a bit easy to style, although placeholders are not the number 1 feature people want to customize.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Select2 multiple box placeholder not showing on hide then ...
I am using select2() in <select multiple> . What I have is a placeholder in that select. What I am doing is initially...
Read more >Placeholder not working for multi select. #5899 - GitHub
I have searched for similar issues in both open and closed tickets and cannot find a duplicate. The issue still exists against the...
Read more >Placeholders - The jQuery replacement for select boxes
Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and pagination (infinite scrolling) of results.
Read more >Setting placeholder on input[type=hidden] and multiple select ...
Until you click in the field, the input is not wide enough and the placeholder text gets cut off even if there is...
Read more >Jquery.sumoselect by Hemant Negi - GitHub Pages
jquery.sumoselect.js - A cross device Single/Multi Select jQuery Select plugin. ... Disabled, Select All, keyboard navigation and Placeholder Support ...
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
hi, okay. Working on it
Hi, ah sorry… I tried out both and the problem with the disabled input is that it’s quite visible (gray background) and the “disabled” cursor shows when hovering. Of course all can be changed with CSS, might as well go ahead with a span… which also needs a bit of styling… but just to set the color.