Skip to content

Commit f8d01cf

Browse files
committed
fix(NcPopover): allow to pass HTML element as boundary
- Resolves #6930 (comment) Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 613b0bc commit f8d01cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/NcPopover/NcPopover.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,19 +176,20 @@ See: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/
176176

177177
<template>
178178
<Dropdown ref="popover"
179+
v-model:shown="internalShown"
179180
:arrow-padding="10"
180181
:auto-hide="closeOnClickOutside"
181182
:boundary="boundary || undefined"
182183
:container
183184
:delay
184185
:distance="10"
186+
handle-resize
185187
:no-auto-focus="true /* Handled by the focus trap */"
186188
:placement="internalPlacement"
187189
:popper-class="popoverBaseClass"
188190
:popper-triggers
189191
:popper-hide-triggers
190192
:popper-show-triggers
191-
:shown="internalShown"
192193
:triggers="internalTriggers"
193194
:hide-triggers
194195
:show-triggers
@@ -230,9 +231,10 @@ export default {
230231
props: {
231232
/**
232233
* Element to use for calculating the popper boundary (size and position).
234+
* Either a query string or the actual HTMLElement.
233235
*/
234236
boundary: {
235-
type: String,
237+
type: [String, Object],
236238
default: '',
237239
},
238240

0 commit comments

Comments
 (0)