Skip to content

Commit 08d88ab

Browse files
NullVoxPopuliclaude
andcommitted
Add MDN link for toggle event
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 8412b8e commit 08d88ab

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ember-primitives/src/components/menu.gts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ const installContent = eModifier<{
154154
}>((element, _: [], { isOpen, triggerElement }) => {
155155
// Focus first focusable element when the popover opens.
156156
// The toggle event fires natively after showPopover() completes.
157+
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/toggle_event
157158
function onToggle(e: ToggleEvent) {
158159
if (e.newState !== "open") return;
159160

0 commit comments

Comments
 (0)