FIX: Was using a global Popper variable

This commit is contained in:
Robin Ward 2020-09-11 15:02:12 -04:00
parent ac08dfac45
commit 05831c2b42

View File

@ -21,6 +21,7 @@ import {
applyContentPluginApiCallbacks,
applyOnChangePluginApiCallbacks,
} from "select-kit/mixins/plugin-api";
import { createPopper } from "@popperjs/core";
export const MAIN_COLLECTION = "MAIN_COLLECTION";
export const ERRORS_COLLECTION = "ERRORS_COLLECTION";
@ -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,