mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 16:19:31 +08:00
FIX: Was using a global Popper
variable
This commit is contained in:
parent
ac08dfac45
commit
05831c2b42
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user