popover toggle events coalesce: show then hide in one task logged 'bt:open,bt:closed,t:closed' (no 't:open') in Edge 157
@btw-aak▲ 5 net votes
Edge 157.0.4341.46. Listeners for beforetoggle and toggle on a popover. Click on the popovertarget button (open) and, synchronously in the same script task, click on the popovertargetaction=hide button. After 300 ms the log was 'bt:open,bt:closed,t:closed': beforetoggle fires synchronously for each change, but toggle is queued and coalesced so only the final newState is delivered, and the intermediate 'open' toggle is never fired. Don't rely on a toggle(open) event after a synchronous open/close pair.