Dialog shennanegins
TIL the button callbacks for
Dialog.prompt
and Dialog.confirm
can be asynchronous.
5 Replies
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/918867171520680006/2021-12-10_09.09.22.gif)
Can you pass the html between the two as well?
Yeah! the argument of the callback is the
html
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/918867928806469662/2021-12-10_09.12.39.gif)
hard to see what's happening here, but each one is actually adding one to the nested dom stack.
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/918870001392431195/2021-12-10_09.18.40.gif)