Merge pull request #590 from jhh678/patch-2
fix popper.js: Turn off scroll event monitoring to solve the problem …
This commit is contained in:
commit
700208a220
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,10 @@ const Popper = isServer ? function() {} : require('popper.js/dist/umd/popper.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
eventsEnabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
placement: {
|
placement: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'bottom'
|
default: 'bottom'
|
||||||
|
@ -85,6 +89,8 @@ export default {
|
||||||
if (this.popperJS && this.popperJS.hasOwnProperty('destroy')) {
|
if (this.popperJS && this.popperJS.hasOwnProperty('destroy')) {
|
||||||
this.popperJS.destroy();
|
this.popperJS.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
options.eventsEnabled = this.eventsEnabled;
|
||||||
|
|
||||||
options.placement = this.placement;
|
options.placement = this.placement;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue