This is a migrated thread and some comments may be shown as answers.

DropdownList disabled issue when inside label

2 Answers 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tomasz
Top achievements
Rank 1
Tomasz asked on 04 Sep 2019, 03:39 PM

Hello,

I'd like to ask about following situation: I have a dropdownlist with disabled property set to true. However, when i put dropdownlist inside a <label> element it can be opened.

https://stackblitz.com/edit/react-grc43y

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 05 Sep 2019, 06:29 AM

Hello, Tomasz,

Thank you for the example, the issue occurs because the label is taking the focus and it passes it down to the DropDown. The disabled property is making the DropDown unclickable but is this case the label is passing the focus event to the DropDown.

I have logged this in our repository for fixing, and also added a possible workaround inside the issue:

https://github.com/telerik/kendo-react/issues/322

Additionally, I have updated your Telerik points for bringing this to our attention.

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
0
Tomasz
Top achievements
Rank 1
answered on 05 Sep 2019, 09:43 AM
Thank you very much for reporting this. I handled this by adding aditional class to label when dropdown is supposed to be disabled.
Tags
General Discussions
Asked by
Tomasz
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Tomasz
Top achievements
Rank 1
Share this question
or