I have a Sidebar defined in MainLayout.razor, which replaces the MS NavBar.
In NavMenu.razor I have a button which collapses the SideBar, and a TreeView to select items.
Below the TreeView-element, I want to show a ComboBox.
The design works fine so far. The problem is the ComboBox. When I click into the ComboBox or select an item from the ComboBox, everything works okay. But when I "swipe" with the mouse inside the ComboBox, the whole SideBar minimizes. Why does this happen, and how can I avoid this? As worst case, can I somehow "block" the Sidebar, until a ComboBox-Item has been selected?
ILIndhumathy Loganathan Syncfusion Team February 27, 2023 01:13 PM UTC
from Syncfusion support.
We have validated your requirement in the Blazor
Sidebar component. By default, the Sidebar EnableGeustures
property is in true state which will expand or collapse the Sidebar while mouse
swiping. You can prevent this by setting EnableGestures value
as false. Please check the below code snippet.