In the below code, i am looping through a list of my data model (this.panel), and generating an input box for each. I would like to propagate any changes made by the user back to the model. to do this i am storing the index of the item im rendering in the html element, and adding a change event handler which will update the model using that index. The problem im having is the @change event at run time is throwing an error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'updateModel')' What's odd is i have another event handler, updateToggleState in a check box lower down that works fine. Any thoughts on what is going on here? Here is the code: class Panel extends LitElement { static properties = { is_fetch_on_change: {}, }; constructor() { super(); this.panel = [ { "id": "ticker", "type": "s...
A site where you can share knowledge