diff --git a/examples/routers/poptip.vue b/examples/routers/poptip.vue index 7eb2439..3ce19f2 100644 --- a/examples/routers/poptip.vue +++ b/examples/routers/poptip.vue @@ -2,17 +2,17 @@
-
- +
+ - + - + - +
@@ -26,11 +26,7 @@ data () { return { options: { - modifiers: { - preventOverflow: { - boundariesElement: 'body', - } - } + } } } diff --git a/src/components/base/popper.js b/src/components/base/popper.js index ddb5257..5b5d4e4 100644 --- a/src/components/base/popper.js +++ b/src/components/base/popper.js @@ -32,13 +32,10 @@ export default { modifiers: { computeStyle:{ gpuAcceleration: false, + }, + preventOverflow :{ + boundariesElement: 'body' } - }, - preventOverflow :{ - boundariesElement: 'body', - }, - flip :{ - boundariesElement: 'body', } }; } @@ -89,10 +86,7 @@ export default { } options.placement = this.placement; - - if (!options.modifiers) { - options.modifiers = {}; - } + if (!options.modifiers.offset) { options.modifiers.offset = {}; } -- libgit2 0.21.4