You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, how does one use the dialog HTML element in Dioxus? Trying to figure this out because unfortunately, the standard authors required the JavaScript showModal method to be called to show a dialog rather than allow it to be declarative. So trying to figure out how to use web-sys crate with -F (feature) HtmlDialogElement. Hoping to utilize the new dialog modal web paradigm for hopefully better out-of-the-box accessibility. Would be great to have some examples in Dioxus docs where it specifies to use web-sys or gloo crate (I didn't find anything in gloo re: the dialog element -- just the standard alert, etc. methods which are different).
For me, I just use the JavaScript in eval(), one major issue for this is, I don't know when the modal is closed by user using esc, other than that, seems finem
Feature Request
Support for the
onclose
event handlerhttps://developer.mozilla.org/zh-TW/docs/Web/API/HTMLDialogElement/close_event
Used with the
dialog
Element.The text was updated successfully, but these errors were encountered: