Choices
Choices copied to clipboard
data-custom-properties are incorrectly parsed.
Describe the bug If Choices is initialized on existing html option tags, the data-custom-properties value is parsed in js with .dataset['custom-properties']. However, the .dataset keys are automatically transformed to camelCase. So the custom-properties should be accessed with .dataset['customProperties'].
To Reproduce See the data-custom-properties example on the Choices page.
@mtriff I'm facing the same issue.
The HTML :
The JS :
The console.log result :
Can this MR be merged ?
Thanks :+1:
Facing the same issue. Please merge this if possible.
Same issue! Can this get merged?
Hi, we're seeing this issue when we need to pass extra fields to Fuse.