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

Fix some leftover non-scoped elements

parent 6d1a7924
No related branches found
No related tags found
No related merge requests found
import './vpu-person-profile-demo.js';
...@@ -116,5 +116,3 @@ export class PersonProfile extends VPULitElement { ...@@ -116,5 +116,3 @@ export class PersonProfile extends VPULitElement {
`; `;
} }
} }
commonUtils.defineCustomElement('vpu-person-profile', PersonProfile);
...@@ -7,7 +7,7 @@ import {PersonProfile} from './index.js'; ...@@ -7,7 +7,7 @@ import {PersonProfile} from './index.js';
import * as commonUtils from 'vpu-common/utils'; import * as commonUtils from 'vpu-common/utils';
import * as commonStyles from 'vpu-common/styles'; import * as commonStyles from 'vpu-common/styles';
import $ from 'jquery'; import $ from 'jquery';
import 'vpu-person-select'; import {PersonSelect} from 'vpu-person-select';
class PersonProfileDemo extends ScopedElementsMixin(VPULitElement) { class PersonProfileDemo extends ScopedElementsMixin(VPULitElement) {
constructor() { constructor() {
...@@ -22,7 +22,7 @@ class PersonProfileDemo extends ScopedElementsMixin(VPULitElement) { ...@@ -22,7 +22,7 @@ class PersonProfileDemo extends ScopedElementsMixin(VPULitElement) {
return { return {
'vpu-person-profile': PersonProfile, 'vpu-person-profile': PersonProfile,
'vpu-auth': Auth, 'vpu-auth': Auth,
'vpu-person-select': customElements.get('vpu-person-select'), 'vpu-person-select': PersonSelect,
}; };
} }
...@@ -45,7 +45,7 @@ class PersonProfileDemo extends ScopedElementsMixin(VPULitElement) { ...@@ -45,7 +45,7 @@ class PersonProfileDemo extends ScopedElementsMixin(VPULitElement) {
that.person = window.VPUPersonId; that.person = window.VPUPersonId;
}); });
const personSelect = that._('vpu-person-select'); const personSelect = that._(this.constructor.getScopedTagName('vpu-person-select'));
personSelect.onchange = function () { personSelect.onchange = function () {
that.selectedPerson = $(this).data("object").identifier; that.selectedPerson = $(this).data("object").identifier;
}; };
......
import '../src/demo.js'; import '../src/vpu-person-profile-demo.js';
describe('vpu-person-profile demo', () => { describe('vpu-person-profile demo', () => {
let node; let node;
......
auth @ b9fbe487
Subproject commit fbf83528159f7d3eeceedff287831dece6b9b46d Subproject commit b9fbe487a8a6117ae90a423a8ba318a0321bf51b
common @ 9c6dc1fd
Subproject commit 821137e246fdcee9ccb04e4cfe420e7abec3186e Subproject commit 9c6dc1fd5e004eba32e31adf8e4485a26c345fe0
person-select @ 50dbadd9
Subproject commit 1f49e4b34a978139cda18f03aecb9a1f18757591 Subproject commit 50dbadd96a525a68adce81a0263f3d6ac92483de
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment