Skip to content
Snippets Groups Projects
Commit ae9316c0 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

person-select: init select2 in the constructor

so that treeshaking works if the person-select isn't used.
parent 4c9891b7
No related branches found
No related tags found
No related merge requests found
Pipeline #230037 passed
......@@ -14,8 +14,6 @@ import select2CSSPath from 'select2/dist/css/select2.min.css';
import * as errorUtils from '@dbp-toolkit/common/error';
import {AdapterLitElement} from '@dbp-toolkit/common';
select2(window, $);
export class PersonSelect extends ScopedElementsMixin(AdapterLitElement) {
constructor() {
super();
......@@ -39,6 +37,8 @@ export class PersonSelect extends ScopedElementsMixin(AdapterLitElement) {
this.showDetails = false;
this._onDocumentClicked = this._onDocumentClicked.bind(this);
select2(window, $);
}
static get scopedElements() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment