Skip to content
Snippets Groups Projects
Commit 9c13b875 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Do some cleanup

parent 660472d5
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ import commonUtils from 'vpu-common/utils';
select2(window, $);
var selectId = 0;
let selectId = 0;
class PersonSelect extends VPULitElementJQuery {
......@@ -21,7 +21,7 @@ class PersonSelect extends VPULitElementJQuery {
this.entryPointUrl = getAPiUrl();
this.jsonld = null;
this.$select = null;
// XXX: For some reason using the same ID twice breaks select2
// For some reason using the same ID twice breaks select2
this.selectId = 'person-select' + selectId++;
}
......@@ -37,7 +37,7 @@ class PersonSelect extends VPULitElementJQuery {
const that = this;
this.updateComplete.then(()=>{
that.$select = $(that.shadowRoot.getElementById(that.selectId));
that.$select = that.$('#' + that.selectId);
// close the selector on blur of the web component
$(that).blur(() => {
......
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