kendo-react icon indicating copy to clipboard operation
kendo-react copied to clipboard

Data attributes are ignored

Open tapopov opened this issue 1 year ago • 2 comments

I'm submitting a...

  • Bug report

Current behavior

Data attributes are currently disregarded by most, if not all KendoReact components.

Expected behavior

Custom Data attributes should be passed to the wrapper element. Button and Input components seem to be doing that: image

Minimal reproduction of the problem with instructions

See example.

What is the motivation or use case for changing the behavior?

Attaching custom data attributes has countless of use-cases. Some of the most widespread ones are related to application testing and tracking user activity. Doing this currently requires extra effort and clunky workarounds, some of which you actually documented, instead of resorting to HTML standards.

tapopov avatar Jan 23 '24 16:01 tapopov

Hey @tapopov , It is great to hear from you! The feedback is great and we have heard it from other users, too. We will definitely have this in mind and try to address it in some of our enhancement efforts in the near future, yet at the moment can't commit to an exact timeframe.

I am leaving it open now,

Greetings, Plamen

zdravkov avatar Jan 24 '24 13:01 zdravkov

We do have an example on how to add custom attributes to the elements: https://www.telerik.com/kendo-react-ui/components/inputs/custom-attributes/

As for a built-in feature, the only option would be to expose "customAttributes" property to the components, which can then add them to the rendered element.

kdikov82 avatar Jan 24 '24 14:01 kdikov82