data-custom-properties not picked up if option is inside an optgroup
See original GitHub issueI’ve been using <option data-custom-properties="somevalue">
on my multiple select to store some additional data I need. This has been working fine until today when I wrapped my <option>
s in an <optgroup>
. Suddenly all my customProperties
are null
. This looks like a bug to me?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
data-custom-properties not picked up if option is inside an ...
I've been using <option data-custom-properties="somevalue"> on my multiple select to store some additional data I need. This has been working fine until ...
Read more >KnockoutJS - Binding value of select with optgroup and ...
A good choice for this situation is to create a quick custom binding that let's your "hand-made" options behave in the same way...
Read more >OptionGroup object (Access) - Microsoft Learn
The OptionValue property is set to a number because the value of an option group can only be a number, not text.
Read more ><optgroup>: The Option Group element - MDN Web Docs
The HTML element creates a grouping of options within a element.
Read more >H85: Using optgroup to group option elements inside a select
Semantically identifying groups of options helps to visually break up long lists so that users can more easily locate what they are interested...
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
Here’s a fiddle that highlights this, and my other two issues in one:
https://jsfiddle.net/n7yvrdzL/8/
this issue persist on 9.0.1