Data attributes are ignored
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:
Minimal reproduction of the problem with instructions
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.
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
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.