Choices icon indicating copy to clipboard operation
Choices copied to clipboard

data-custom-properties are incorrectly parsed.

Open codeflow-biz opened this issue 2 years ago • 4 comments

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.

codeflow-biz avatar May 10 '22 08:05 codeflow-biz

@mtriff I'm facing the same issue.

The HTML : image

The JS : image

The console.log result : image

Can this MR be merged ?

Thanks :+1:

MacBim avatar Aug 10 '22 07:08 MacBim

Facing the same issue. Please merge this if possible.

stell avatar Oct 13 '22 15:10 stell

Same issue! Can this get merged?

baspieter avatar Nov 18 '22 10:11 baspieter

Hi, we're seeing this issue when we need to pass extra fields to Fuse.

LC43 avatar Jun 01 '23 15:06 LC43