You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the SplitButton component creates an IDE issue with nullability checks, as the EventCallback for Click (here) suggests it returns a non-nullable RadzenSplitButtonItem. If the main Button is clicked however null is returned (here)
This creates an issue where you need to do a null check but your IDE is warning you about an unnecessary null check.
To Reproduce
Create a splitbutton and an event callback for Click
The event callback will have the signature public void OnClick(RadzenSplitButtonItem item)
In the event callback access item.Value
Click the main part of the button (not the dropdown)
Expected behavior
Return a nullable RadzenSplitButtonItem via RadzenSplitButtonItem?
The text was updated successfully, but these errors were encountered:
Currently null checks are not enabled for the Radzen.Blazor project. Enabling them would require a huge effort which we are not willing to make at the moment.
Describe the bug
Using the
SplitButton
component creates an IDE issue with nullability checks, as theEventCallback
forClick
(here) suggests it returns a non-nullableRadzenSplitButtonItem
. If the main Button is clicked howevernull
is returned (here)This creates an issue where you need to do a null check but your IDE is warning you about an unnecessary null check.
To Reproduce
Click
public void OnClick(RadzenSplitButtonItem item)
item.Value
Expected behavior
Return a nullable
RadzenSplitButtonItem
viaRadzenSplitButtonItem?
The text was updated successfully, but these errors were encountered: