Skip to content

Commit

Permalink
fix(Popper): add attrs to root div
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Apr 29, 2022
1 parent 542ddd3 commit 4391e5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/floating-vue/src/components/Popper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ export default () => defineComponent({
popperClass: this.popperClass,
},
result: this.positioningDisabled ? null : this.result,
attrs: this.$attrs,
}
},

Expand Down
2 changes: 2 additions & 0 deletions packages/floating-vue/src/components/PopperWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
onResize,
classes,
result,
attrs,
}"
v-bind="popperAttrs"
:theme="finalTheme"
Expand All @@ -23,6 +24,7 @@
<div
ref="reference"
class="v-popper"
v-bind="attrs"
:class="[
$attrs.class,
themeClass,
Expand Down

0 comments on commit 4391e5c

Please sign in to comment.