We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cb159d2 + 982d4f6 commit 320ef3aCopy full SHA for 320ef3a
.changeset/hip-clowns-visit.md
@@ -0,0 +1,5 @@
1
+---
2
+'@openproject/primer-view-components': patch
3
4
+
5
+Delegate the items call to SubMenu of ActionMenu component
app/components/primer/alpha/action_menu/sub_menu_item.rb
@@ -6,6 +6,8 @@ class ActionMenu
6
# This component is part of <%= link_to_component(Primer::Alpha::ActionMenu) %> and should not be
7
# used as a standalone component.
8
class SubMenuItem < ::Primer::Alpha::ActionList::Item
9
+ delegate :items, to: :@sub_menu
10
11
def initialize(content_arguments: {}, form_arguments: {}, **system_arguments)
12
# We extract form_arguments from system_arguments here to avoid passing them to the
13
# ActionList::Item base class or to the SubMenu instance. Doing so prevents a form
0 commit comments