Articles in this section

Blazor Sidebar closes automatically when peforming action similar to swiping

The Blazor Sidebar closes issue when performing actions like dragging the mouse to the left (similar to swiping) in the main content, causing the Sidebar component to close at your end. To prevent this, you need to set the EnableGestures property value to false. By default, the value of this property is true in the Sidebar component.


Refer to the following code sample:

<SfSidebar Width="250px" EnableGestures="false">

    <ChildContent>

        <div style="text-align: center;" class="text-content"> Sidebar </div>

    </ChildContent>

</SfSidebar>

 


For reference, we have added a link for the sample.

 https://blazorplayground.syncfusion.com/hXBqCNUjhQAKoKvL

Conclusion

I hope you enjoyed learning about Blazor Sidebar closes automatically when peforming action similar to swiping.

You can refer to our Blazor Sidebar feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Blazor Sidebar example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied