fix(form-core): remove usage of Public Class Fields to not break builds
This commit is contained in:
parent
f7299f1672
commit
60d5d1d3a3
3 changed files with 15 additions and 5 deletions
5
.changeset/smooth-apricots-laugh.md
Normal file
5
.changeset/smooth-apricots-laugh.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@lion/form-core': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Remove usage of Public Class Fields to not break builds
|
||||||
|
|
@ -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() {
|
||||||
count: { type: Number },
|
return {
|
||||||
};
|
count: { type: Number },
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
static styles = css`
|
static styles = css`
|
||||||
:host {
|
:host {
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,11 @@ import { dedupeMixin } from '@lion/core';
|
||||||
*/
|
*/
|
||||||
const FormRegisteringMixinImplementation = superclass =>
|
const FormRegisteringMixinImplementation = superclass =>
|
||||||
class extends superclass {
|
class extends superclass {
|
||||||
/** @type {FormRegistrarHost | undefined} */
|
constructor() {
|
||||||
__parentFormGroup;
|
super();
|
||||||
|
/** @type {FormRegistrarHost | undefined} */
|
||||||
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue