Skip to content

Commit

Permalink
Merge pull request #1389 from nextcloud/fix/1384/popover-container
Browse files Browse the repository at this point in the history
Allow to set popover container
  • Loading branch information
marcoambrosini authored Sep 7, 2020
2 parents a9ee4b7 + 57ee85b commit 7acf701
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/Actions/Actions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ https://www.w3.org/TR/wai-aria-practices/examples/menu-button/menu-button-action
:open.sync="opened"
:placement="placement"
:boundaries-element="boundariesElement"
container="body"
:container="container"
@show="openMenu"
@apply-show="onOpen"
@hide="closeMenu">
Expand Down Expand Up @@ -269,6 +269,14 @@ export default {
type: Element,
default: () => document.querySelector('body'),
},

/**
* Selector for the actions' popover container
*/
container: {
type: String,
default: 'body',
},
},

data() {
Expand Down

0 comments on commit 7acf701

Please sign in to comment.