-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable Overlay Behavior for BottomSheet (Collapse or Disable Dismissal) #62
Comments
Hi architpoddar-if, Thank you for sharing your valuable feedback and feature requests for the BottomSheet control. We have reviewed your suggestions regarding the overlay click behavior and are pleased to inform you that we have considered both requested features: Regards, |
Hello @naveenkumar-sanjeevirayan Is it possible to have an option were we can control if clicking on the overlay to fully dismiss or collapse? Thanks |
Hi Malsabi, Thanks for contacting Syncfusion support. We have reviewed your queries. Query 1: Is it possible to have an option where we can control if clicking on the overlay to fully dismiss or collapse? Query 2: When the overlay interaction is disabled, does it mean I can still move the bottom sheet to any state? Query 3: Is it possible to make the bottom sheet close directly when it goes to a collapsed state by creating a Boolean property to support this feature? Xaml:
C#:
Regards, |
@naveenkumar-sanjeevirayan |
Description
Currently, clicking on the overlay of a BottomSheet dismisses it entirely. However, in some use cases, it would be beneficial to have more control over this behavior.
Specifically, I would like to request the ability to configure the overlay click behavior such that:
Collapse Instead of Dismiss: Clicking on the overlay collapses the BottomSheet, ie, the state is changed to Collapsed instead of hidden.
Disable Overlay Interaction: Clicking on the overlay has no effect, keeping the BottomSheet in its current state.
Public API Changes
public enum OverlayClickBehavior {
Dismiss,
Collapse,
None
}
public OverlayClickBehavior OverlayClickBehavior { get; set; }
Intended Use-Case
This feature is useful in situations where dismissing the BottomSheet entirely would:
Example Scenario: Feedback Form in a Mobile App
A mobile app includes a BottomSheet that serves as a feedback form. The BottomSheet has multiple fields (e.g., name, email, feedback message) that users fill out and submit.
Why Collapsing Matters:
If the user accidentally taps outside the BottomSheet, dismissing it completely would result in losing all the entered information. This is frustrating for users and disrupts the experience. Allowing the BottomSheet to collapse instead ensures the form stays accessible, and the user can continue filling it out without data loss.
Why Disabling the Overlay Matters:
In scenarios where the feedback form is critical and must be completed, ignoring overlay clicks ensures that the BottomSheet remains persistent until the user explicitly closes or submits the form.
The text was updated successfully, but these errors were encountered: