Dynamic placeholders for Multi-select no longer working in 9.x
See original GitHub issueDescribe the bug In all versions <= 8.0.0, placeholders would show up for multiple select dropdown configurations. This is no longer working in the 9.x branch.
To Reproduce Steps to reproduce the behavior:
- Add a new multi-select with no initial options.
- Use the following code to add placeholder.
<select id="myselect"></select>
new Choices(document.getElementById('myselect'), {
placeholderValue: 'This should be a placeholder'
});
Expected behavior You should see the placeholder.
Screenshots Will provide if necessary but this is pretty easy to reproduce.
Desktop (please complete the following information):
- MacOS, Chrome
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Problem with adding options dynamically to multiselect
1. You probably need to re-initialize whatever it was that turned your select element into such a custom HTML structure to begin with....
Read more >Static array not loading in dropdown - No Data Available ...
Angular version: 9.0.4 ; ng-multiselect-dropdown version: 0.2.10 ; Description of issue: Static arrays are not loading - Dynamic array is loading.
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 >Placeholder is not customizable in cell while implementing ...
Hi All, We are working on Migrating Project from version5 to version 7.1.9. Existing configuration: In pega version5, we have implementation ...
Read more >Dynamically Populating Drop Down, Radio Buttons or Multi ...
Dynamically Populating Drop Down, Radio Buttons or Multi-Select Fields ... This is not a Gravity Forms limitation but a consequence of using ...
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
Hey - so I actually removed this functionality in the 9.0.0 release (https://github.com/jshjohnson/Choices/pull/731) but have clearly forgotten to update the documentation 🤦♂For versions >=9.x,
placeholderValue
will only apply to text elements. The reason for removing it was the added complexity of supporting it.@travist thanks. I’ve ended with dumb’n’brute solution (using Preact):