Closed K1R0J closed 5 months ago
Describe the bug When adding a widget the default values of attributes are not set.
To Reproduce Add Property: @property({ type: String, attribute: true, reflect: true }) public testString: string = 'Test'; Try to render Property:
@property({ type: String, attribute: true, reflect: true }) public testString: string = 'Test';
render(){ return html`${this.testString}`; }
Screenshots
Desktop (please complete the following information):
Additional context Only happens in Editor not in exported File. Attributes are correct in the firstUpdated but are lost in the render Function
firstUpdated
render
Describe the bug When adding a widget the default values of attributes are not set.
To Reproduce Add Property:
@property({ type: String, attribute: true, reflect: true }) public testString: string = 'Test';
Try to render Property:Screenshots
Desktop (please complete the following information):
Additional context Only happens in Editor not in exported File. Attributes are correct in the
firstUpdated
but are lost in therender
Function