Open NEmbgen opened 3 months ago
Hi @NEmbgen,
You can add the ?
yourself.
@akorchev Thanks for the response. I know I can add it myself, but wouldn't it be more correct from an API point of view for Radzen to have it?
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?