Skip to content

Commit

Permalink
ensure to forward the incoming attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed May 19, 2023
1 parent cb9b6e4 commit f46368a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@headlessui-vue/src/components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export let Dialog = defineComponent({
h(PortalWrapper, {}, () =>
render({
ourProps,
theirProps,
theirProps: { ...theirProps, ...attrs },
slot,
attrs,
slots,
Expand Down
2 changes: 1 addition & 1 deletion packages/@headlessui-vue/src/components/popover/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export let Popover = defineComponent({
let slot = { open: popoverState.value === PopoverStates.Open, close: api.close }
return h(PortalWrapper, {}, () =>
render({
theirProps: props,
theirProps: { ...props, ...attrs },
ourProps: { ref: internalPopoverRef },
slot,
slots,
Expand Down

0 comments on commit f46368a

Please sign in to comment.