webwriter-app / webwriter

Authoring tool for interactive content
https://webwriter.app
Other
14 stars 1 forks source link

Attributes are not populated with their default values #51

Closed K1R0J closed 5 months ago

K1R0J commented 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:

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