|
|
|
|
|
by lelanthran
443 days ago
|
|
> I'm with you... would be nice to have: You can do this right now already: // For opening
<button onclick='document.querySelector("#dialogId").showModal()'>Open</button>
// For closing
<button onclick='this.closest("dialog").close()'>Close</button>
I think the problem here is that it is impossible to actually use the result from `close()`, as it can return a status, IIRC.> It would just make so much sense. That way above that I propose is about as sensible as the way you propose. If there are any problems with my proposal that are solved by your proposal, I'd love to hear it. |
|