FIX: adds shims for popper in wizard (#10658)

This commit is contained in:
Joffrey JAFFEUX 2020-09-14 18:33:14 +02:00 committed by GitHub
parent 663d696095
commit 9238a9e427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,4 @@
import { createPopper } from "@popperjs/core";
import I18n from "I18n";
import EmberObject, { computed, get } from "@ember/object";
import { guidFor } from "@ember/object/internals";
@ -772,8 +773,7 @@ export default Component.extend(
const verticalOffset = this.multiSelect ? 0 : 3;
/* global Popper:true */
this.popper = Popper.createPopper(anchor, popper, {
this.popper = createPopper(anchor, popper, {
eventsEnabled: false,
strategy: placementStrategy,
placement: this.selectKit.options.placement,

View File

@ -0,0 +1,6 @@
define("@popperjs/core", ["exports"], function (__exports__) {
__exports__.default = window.Popper;
__exports__.createPopper = window.Popper.createPopper;
__exports__.defaultModifiers = window.Popper.defaultModifiers;
__exports__.popperGenerator = window.Popper.popperGenerator;
});

View File

@ -4,4 +4,5 @@
//= require sweetalert.js
//= require virtual-dom
//= require virtual-dom-amd
//= require popper
//= require popper.js
//= require wizard-shims