When adding data using the new Selectr(..., {data: []}) method, custom attributes seem to be ignored versus when adding them through instance.add(...), which also ignores option groups.
The following does not seem to work properly (Only adds the groups)
When adding data using the
new Selectr(..., {data: []})
method, custom attributes seem to be ignored versus when adding them throughinstance.add(...)
, which also ignores option groups.The following does not seem to work properly (Only adds the groups)
This works but does not attach the 'data-custom' attribute to the option elements
Is there a work around for this?
I would like to have the option groups as well as custom attributes.