Unplanned
Last Updated: 02 Mar 2020 12:49 by ADMIN
Rogelio
Created on: 12 Mar 2019 19:01
Category: KendoReact
Type: Feature Request
0
Add id prop for ComboBox

Currently, ComboBox generates a UUID and uses it as the input tag's id property (e.g. <input id="2e048165-6468-46c0-ba39-c47b12c7fcf2" />).

 

As a developer, I want to be able to set my own custom id so that I can set my own label tag as a sibling to the ComboBox component.

 

For example, I would like this to be possible:

<label for="hello">Hello World</label>
<ComboBox id="hello" />

 

There is a label prop offered on ComboBox which works fine but it does not let me specify the label tag with custom class names, styling, etc.

 

This new id prop should be optional and ComboBox can keep using the same technique it does when no id prop is passed to it.

 

3 comments
ADMIN
Stefan
Posted on: 02 Mar 2020 12:49

Hello,

The team is currently working on this as for this quarter we have a task to optimize the labels for the components and this includes improving the ID attribute as well.

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
SIGMA
Posted on: 02 Mar 2020 09:44
do you fix this bug?
ADMIN
Stefan
Posted on: 13 Mar 2019 09:38
Hello, Rogelio,

Thank you for the suggestion.

Currently, this can be achieved using the ref of the ComboBox and programmatically setting the desired ID to the element:

https://stackblitz.com/edit/react-ta8fr8?file=app/main.js

I hope this approach will prove helpful in the real application.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items