<script type="text/javascript">
window.addEventListener('load', function() {
document.querySelector('button#alert-item').addEventListener('click', (_e) => {
alert('Foo')
});
}, false);
</script>
<action-menu data-select-variant="none" data-view-component="true">
<focus-group direction="vertical" mnemonics retain>
<button id="action-menu-20cfa745-63d8-4198-a09f-d410c2e011e5-button" popovertarget="action-menu-20cfa745-63d8-4198-a09f-d410c2e011e5-overlay" aria-controls="action-menu-20cfa745-63d8-4198-a09f-d410c2e011e5-list" aria-haspopup="true" type="button" data-view-component="true" class="Button--secondary Button--medium Button"> <span class="Button-content">
<span class="Button-label">Trigger</span>
</span>
</button>
<anchored-position data-target="action-menu.overlay" id="action-menu-20cfa745-63d8-4198-a09f-d410c2e011e5-overlay" anchor="action-menu-20cfa745-63d8-4198-a09f-d410c2e011e5-button" align="start" side="outside-bottom" anchor-offset="normal" popover="auto" data-view-component="true">
<div data-view-component="true" class="Overlay Overlay--size-auto">
<div data-view-component="true" class="Overlay-body Overlay-body--paddingNone"> <action-list>
<div data-view-component="true">
<ul aria-labelledby="action-menu-20cfa745-63d8-4198-a09f-d410c2e011e5-button" id="action-menu-20cfa745-63d8-4198-a09f-d410c2e011e5-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="alert-item" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Alert
</span>
</button>
</li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<a href="/view-components/rails-app/action_menu/landing_page" tabindex="-1" id="item-cb435aa2-da8d-47d4-9204-1b8c7fa12d6e" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Navigate
</span>
</a>
</li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<clipboard-copy value="Text to copy" tabindex="-1" id="item-10638a74-e5a2-4acb-b3d9-275344f7fb30" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Copy text
</span>
</clipboard-copy>
</li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<form role="none" action="/view-components/rails-app/action_menu/form_action.html" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="lb-I_n1bY4wL4gh_7UqDQ9p5PFrGkU-9keoYaaiKo42UKLSlGXLzV5Gv7uWpT5_qIypvabn__MbxYMoos4qyxg" autocomplete="off" />
<input name="foo" value="bar" type="hidden" data-list-item-input="true" data-view-component="true" />
<button tabindex="-1" id="item-5c95c94c-026c-4d93-be3e-b04d4dd4fccc" type="submit" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
Submit form
</span>
</button>
</form>
</li>
</ul>
</div>
</action-list>
</div>
</div>
</anchored-position> </focus-group>
</action-menu>