diff --git a/.changeset/olive-planes-flash.md b/.changeset/olive-planes-flash.md new file mode 100644 index 0000000000..bda1e5d93d --- /dev/null +++ b/.changeset/olive-planes-flash.md @@ -0,0 +1,5 @@ +--- +"@openproject/primer-view-components": patch +--- + +Fix: Delete the direction from the body arguments diff --git a/app/components/primer/beta/avatar_stack.rb b/app/components/primer/beta/avatar_stack.rb index a397d4919d..c28903e5c6 100644 --- a/app/components/primer/beta/avatar_stack.rb +++ b/app/components/primer/beta/avatar_stack.rb @@ -52,6 +52,7 @@ def initialize(tag: DEFAULT_TAG, align: ALIGN_DEFAULT, tooltipped: false, body_a @tooltip_arguments = { for_id: @body_arguments[:id], + direction: @body_arguments.delete(:direction), } @tooltip_arguments[:direction] = @direction || Primer::Alpha::Tooltip::DIRECTION_DEFAULT