Hi, ContextMenu does not work on certain components if they are disabled.
It does not work on disabled RadzenNumeric and disabled RadzenTextArea. I can replicate this behaviour in the Radzen Demo as follows:
<RadzenStack Gap="1rem" class="rz-p-sm-12">
<RadzenNumeric Disabled="true" Value="1" ContextMenu=@(args => ShowContextMenuWithItems(args)) />
<EventConsole @ref=@console />
</RadzenStack>
It does work on other disabled components, e.g. RadzenDropdown.
Best regards
enchev
July 31, 2024, 3:25pm
2
Not sure which is the correct behavior. Maybe we should fix the DropDown and the likes to not allow context menu if disabled.
Yeah. Disabled components shouldn't fire events.
1 Like
I would like to be able to show the contextmenu on disabled components. I use it to display a side dialog which in my use case makes sense for both enabled and disabled components.
We don't plan to allow showing context menus on disabled items. It is counter intuitive and users don't expect disabled components to be interactive.
okay, I agree. It seems to work with ReadOnly which is fine.