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';
|
||||
|
||||
export class MyCounter extends LitElement {
|
||||
static properties = {
|
||||
count: { type: Number },
|
||||
};
|
||||
static get properties() {
|
||||
return {
|
||||
count: { type: Number },
|
||||
};
|
||||
}
|
||||
|
||||
static styles = css`
|
||||
:host {
|
||||
|
|
|
|||
|
|
@ -16,8 +16,11 @@ import { dedupeMixin } from '@lion/core';
|
|||
*/
|
||||
const FormRegisteringMixinImplementation = superclass =>
|
||||
class extends superclass {
|
||||
/** @type {FormRegistrarHost | undefined} */
|
||||
__parentFormGroup;
|
||||
constructor() {
|
||||
super();
|
||||
/** @type {FormRegistrarHost | undefined} */
|
||||
this.__parentFormGroup = undefined;
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
// @ts-expect-error check it anyway, because could be lit-element extension
|
||||
|
|
|
|||
Loading…
Reference in a new issue