DioxusLabs / DioxusLabs/dioxus
Support for `HTMLDialogElement` methods `show`, `showModal` and `close`.
Open
enhancement
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
## Feature Request
Currently we can build a `dialog` element but not control it with the standard (but arguably not stable) `HTMLDialogElement` methods: `show`, `showModal` and `close`.
We can't either capture the `HTMLDialogElement`-specific events: `close` and `cancel`. The former is already covered by https://github.com/DioxusLabs/dioxus/issues/2962.
## Implement Suggestion
I don't know much about dioxus's architecture, but I imagine this could be provided through the `MountedData` object provided with `onmount`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.