Feature Suggestion: Add Support to Disable Closing on Backdrop Click
Prerequisites
- [X] I have searched for duplicate or closed feature requests
- [X] I have read the contributing guidelines
Proposal
Description: This issue proposes adding a new configuration option to the Offcanvas component, allowing developers to disable the automatic closing of the offcanvas when a user clicks on the backdrop.
Suggested Feature: Disable Closing on Backdrop Click: Description: Currently, the offcanvas automatically closes when the user clicks on the backdrop surrounding it. This new option would allow developers to disable this behavior.
Expected Behavior: A new option, closeOnBackdropClick, could be added to the offcanvas configuration. If set to false, the offcanvas would remain open even when the user clicks on the backdrop.
Motivation and context
Motivation: This feature provides more control over the offcanvas behavior, particularly in situations where accidental closure should be prevented, such as with complex forms or when displaying critical information.
previously discussed, fix here: https://github.com/lllyasviel/stable-diffusion-webui-forge/issues/889#issuecomment-2257289510