I have page where Sfsplitbutton with menu items are displayed and itemselected have different actions.
When I select one of items, menu item options become sticky on top of page.
I have code as below:
<SfSplitButton Content="Downloads" Disabled="IsDownloadReportButtonDisabled"
CssClass="mr-2">
<SplitButtonEvents ItemSelected="OnDownloadReportItemSelected"></SplitButtonEvents>
<DropDownMenuItems>
<DropDownMenuItem Id="DownloadTcaReportItem" Text="Download Report"></DropDownMenuItem>
<DropDownMenuItem Id="DownloadTcaConsentReportItem" Text="Download Consent"></DropDownMenuItem>
@if (_isAccountOccupationalHealth)
{
<DropDownMenuItem Id="DownloadTcaSummaryReportItem" Text="Download Summary Report"></DropDownMenuItem>
}
</DropDownMenuItems>
</SfSplitButton>