I'm using custom properties (inline data attribute) to display a description and thumbnail image. This works fine on a regular select field. But when I add optgroup within the select, it falls apart and only loads the option label. All custom properties are returned as undefined.
The custom property attribute is valid JSON and when I turn off the Choices script it loads correctly with optgroup just fine. So there's definitely a bug in Choices.
Here's a screenshot of it working with no optgroup and after optgroup is added (no thumbnails or custom properties).
I'm using custom properties (inline data attribute) to display a description and thumbnail image. This works fine on a regular select field. But when I add optgroup within the select, it falls apart and only loads the option label. All custom properties are returned as undefined.
The custom property attribute is valid JSON and when I turn off the Choices script it loads correctly with optgroup just fine. So there's definitely a bug in Choices.
Here's a screenshot of it working with no optgroup and after optgroup is added (no thumbnails or custom properties).
Using macOS latest Chrome (v124.0).
Anyone else ran into this bug?