Re: [w3ctag/design-reviews] Dispatching Toggle Events for Dialog open/close (Issue #1005)

FWIW it would not be as simple as `open`/`close`; you'd need `beforeopen`/`beforeclose` also.

This was discussed in 2021 as part of OpenUI (https://www.w3.org/2021/05/13-openui-minutes.html#t01) where Robert pointed out the precedent for event naming around `before`; (e.g. `beforeinput` or `beforeunload`). This meeting settled on `beforeshow`/`beforehide`. At some point this was tweaked to `open`/`closed` (though I can't find that thread).

So in 2022 https://github.com/whatwg/html/issues/8386 was raised which proposed the various `beforeopen`/`afteropen`/`beforeclosed`/`afterclosed`. Domenic asked why we need a set of events for this, and pointed out that `toggle` could be re-used for the `after*` events: https://github.com/whatwg/html/issues/8386#issuecomment-1306664435. Perhaps during a meeting it was resolved to also use `beforetoggle`; as the comment here suggests: https://github.com/whatwg/html/issues/8386#issuecomment-1432654221.

I'm sure @josepharhar could find more threads exposing this level of discussion but this is what I could find.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/1005#issuecomment-2454514297
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/1005/2454514297@github.com>

Received on Monday, 4 November 2024 11:53:43 UTC