Skip to content

hideOnClickOutside for the SideModal component #2810

Answered by SiTaggart
pratapdd asked this question in General
Discussion options

You must be logged in to vote

Hi @pratapdd

This looks like it might be a little bit of a misunderstanding from reading the docs. What we say in the using state hooks section is that you can use the hook, and state properties provided by it to control the side modal state. hideOnClickOutside is not part of the state hook arguments or returned state.

We're also fairly explicit in the Side modals intended behavior that it "does not block the user from interacting with the rest of the page", which if we allowed hideOnClickOutside to be overridden, would be circumvented. You can't interact with the underlying content on the page if every time you click outside, the dialog closes.

I wouldn't be expecting that functionality …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SiTaggart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants