RadzenDropDown does not handle clicks properly while disabled #832

Closed
opened 2026-01-29 17:45:04 +00:00 by claunia · 1 comment
Owner

Originally created by @Mertsch on GitHub (Apr 29, 2023).

Describe the bug
When using RadzenDropDown and click it while Disabled is true (loading data) nothing happens (does not open). ✔
When Disabled is false (data was loaded) and you click it, it opens and works as expected. ✔
When you selected an item and the drop down closes, it re-opens again.

As a workaround you confirm the DropDown again and now it closes and stays closed.

Expected behavior
Clicks while disabled should be ignored.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome/Edge
  • Version 112

Additional context

<RadzenDropDown Data="AvailableInitiationsFiltered" TValue="InitiationInitiation"
                OpenOnFocus="true" AllowFiltering="true"
                Disabled="@(InitiationState is AnbahnungSubState.Loading || SelectedCompany is null)"
                ClearSearchAfterSelection="true"
                LoadData="filterInitiations"
                Value="SelectedInitiation"
                ValueChanged="selectedInititationChanged">
Originally created by @Mertsch on GitHub (Apr 29, 2023). **Describe the bug** When using `RadzenDropDown` and click it while `Disabled` is `true` (loading data) nothing happens (does not open). ✔ When `Disabled` is `false` (data was loaded) and you click it, it opens and works as expected. ✔ When you selected an item and the drop down closes, it re-opens again. ❌ As a workaround you confirm the DropDown again and now it closes and stays closed. **Expected behavior** Clicks while disabled should be ignored. **Desktop (please complete the following information):** - OS: Windows - Browser: Chrome/Edge - Version 112 **Additional context** ``` <RadzenDropDown Data="AvailableInitiationsFiltered" TValue="InitiationInitiation" OpenOnFocus="true" AllowFiltering="true" Disabled="@(InitiationState is AnbahnungSubState.Loading || SelectedCompany is null)" ClearSearchAfterSelection="true" LoadData="filterInitiations" Value="SelectedInitiation" ValueChanged="selectedInititationChanged"> ```
Author
Owner

@enchev commented on GitHub (May 2, 2023):

I'm afraid that I cannot reproduce such problem.
image

@enchev commented on GitHub (May 2, 2023): I'm afraid that I cannot reproduce such problem. ![image](https://user-images.githubusercontent.com/5804953/235600662-ab71d276-b382-4b51-aba4-4d638a8f214a.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#832