Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/hip-clowns-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openproject/primer-view-components': patch
---

Delegate the items call to SubMenu of ActionMenu component
2 changes: 2 additions & 0 deletions app/components/primer/alpha/action_menu/sub_menu_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class ActionMenu
# This component is part of <%= link_to_component(Primer::Alpha::ActionMenu) %> and should not be
# used as a standalone component.
class SubMenuItem < ::Primer::Alpha::ActionList::Item
delegate :items, to: :@sub_menu

def initialize(content_arguments: {}, form_arguments: {}, **system_arguments)
# We extract form_arguments from system_arguments here to avoid passing them to the
# ActionList::Item base class or to the SubMenu instance. Doing so prevents a form
Expand Down
Loading