diff --git a/packages/person-select/src/vpu-person-select.js b/packages/person-select/src/vpu-person-select.js index d4e963b793aa3e5b7991d0a67333e71d0492d475..28074afc4609ad275ed8407a59395b087f60943a 100644 --- a/packages/person-select/src/vpu-person-select.js +++ b/packages/person-select/src/vpu-person-select.js @@ -147,6 +147,7 @@ class PersonSelect extends LitElement { }; }, processResults: function (data) { + that.lastResult = data; let transformed = that.jsonld.transformMembers(data, personContext); const results = []; transformed.forEach((person) => { @@ -163,6 +164,8 @@ class PersonSelect extends LitElement { } } }).on("select2:select", function (e) { + console.log("select2:select"); + debugger // set custom element attributes const identifier = e.params.data.id; that.object = findObjectInApiResults(identifier, that.lastResult);