fix(form-core): remove usage of Public Class Fields to not break builds

This commit is contained in:
Thomas Allmer 2020-09-09 16:05:13 +02:00 committed by Thomas Allmer
parent f7299f1672
commit 60d5d1d3a3
3 changed files with 15 additions and 5 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/form-core': patch
---
Remove usage of Public Class Fields to not break builds

View file

@ -1,9 +1,11 @@
import { LitElement, html, css } from 'lit-element'; import { LitElement, html, css } from 'lit-element';
export class MyCounter extends LitElement { export class MyCounter extends LitElement {
static properties = { static get properties() {
return {
count: { type: Number }, count: { type: Number },
}; };
}
static styles = css` static styles = css`
:host { :host {

View file

@ -16,8 +16,11 @@ import { dedupeMixin } from '@lion/core';
*/ */
const FormRegisteringMixinImplementation = superclass => const FormRegisteringMixinImplementation = superclass =>
class extends superclass { class extends superclass {
constructor() {
super();
/** @type {FormRegistrarHost | undefined} */ /** @type {FormRegistrarHost | undefined} */
__parentFormGroup; this.__parentFormGroup = undefined;
}
connectedCallback() { connectedCallback() {
// @ts-expect-error check it anyway, because could be lit-element extension // @ts-expect-error check it anyway, because could be lit-element extension