-
SideModal documentation says consumers would be able to use the props of Non-Modal Dialog Primitive documentation. And one of the property is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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. 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 I wouldn't be expecting that functionality to be added to the component. If you do feel you really need it, you can use the non-modal dialog primitive directly to create your own custom component. |
Beta Was this translation helpful? Give feedback.
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 …