question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

data-custom-properties not picked up if option is inside an optgroup

See original GitHub issue

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 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
powerbuoycommented, Mar 12, 2019

Here’s a fiddle that highlights this, and my other two issues in one:

https://jsfiddle.net/n7yvrdzL/8/

0reactions
Ziluscommented, Feb 10, 2020

this issue persist on 9.0.1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found