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

Import jquery right at the start

sometimes the update happens during connectedCallback already
and there we need jquery
parent 10d6e61c
No related branches found
No related tags found
No related merge requests found
Pipeline #14283 passed
...@@ -77,12 +77,11 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(LitElement) { ...@@ -77,12 +77,11 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(LitElement) {
} }
async connectedCallback() { async connectedCallback() {
await super.connectedCallback();
this._jquery = (await import('jquery')).default; this._jquery = (await import('jquery')).default;
let select2 = (await import('select2')).default; let select2 = (await import('select2')).default;
select2(window, this._jquery); select2(window, this._jquery);
await super.connectedCallback();
await this.updateComplete; await this.updateComplete;
const that = this; const that = this;
......
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