webwriter-app / webwriter

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

Changing Attributes Deletes the Widget #50

Closed K1R0J closed 8 months ago

K1R0J commented 8 months ago

Describe the bug Changing attributes while using the widget results in a reload of the widget and it gets deleted. Only happens in the editor, not in the exported file.

To Reproduce Add a simple Attribute e.g. @property({ type: String, attribute: true, reflect: true }) public testString: string = ''; Change the Attribute e.g. with a button <button @click=${() => this.testString = 'test'}>Test</button>

Screenshots Screenshot 2024-01-30 121204

Desktop (please complete the following information):

Additional context Tested with a Local Widget