Skip to content

Fixes dialog closing unexpectedly#286

Open
pkleineb wants to merge 1 commit into
DioxusLabs:mainfrom
Torvex-UG:fix/dialog_closes_unexpectedly
Open

Fixes dialog closing unexpectedly#286
pkleineb wants to merge 1 commit into
DioxusLabs:mainfrom
Torvex-UG:fix/dialog_closes_unexpectedly

Conversation

@pkleineb

Copy link
Copy Markdown

In the newer versions of dioxus-primitives, dialogs would close when clicking on their internal content such as text and empty space. This PR aims to fix this by using the internal dioxus event implementation instead of javascript. Specifically I removed use_outside_dismiss in the DialogContent and replaced it with an onclick handler on the DialogRoot backdrop.

If this implementation doesn't cover all of use_outside_dismiss's features I'll be happy to add them.

this switches from use_outside_dismiss javascript function to dioxus
owned event stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant