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

Subclass LitElement directly

Having two base classes for two small methods is a bit much.
parent 5d234009
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,8 @@ import select2 from 'select2';
import select2LangDe from './i18n/de/select2'
import select2LangEn from './i18n/en/select2'
import JSONLD from 'vpu-common/jsonld';
import {css, html} from 'lit-element';
import {css, html, LitElement} from 'lit-element';
import {i18n} from './i18n.js';
import VPULitElementJQuery from 'vpu-common/vpu-lit-element-jquery';
import * as commonUtils from 'vpu-common/utils';
import * as commonStyles from 'vpu-common/styles';
import select2CSSPath from 'select2/dist/css/select2.min.css';
......@@ -15,7 +14,7 @@ import * as errorUtils from "vpu-common/error";
select2(window, $);
class PersonSelect extends VPULitElementJQuery {
class PersonSelect extends LitElement {
constructor() {
super();
......@@ -36,6 +35,10 @@ class PersonSelect extends VPULitElementJQuery {
this.showBirthDate = false;
}
$(selector) {
return $(this.shadowRoot.querySelector(selector));
}
static get properties() {
return {
lang: { type: String },
......
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