Incorrect call to autoBoundAttributes.includes inside attributeChangedCallback prevents attribute-property syncing
yavuztor opened this issue · comments
Yavuz Tor commented
When an attribute is set using element.setAttribute(..)
, its auto-bound property is not updated properly, due to an incorrect call for autoBoundProperties.includes
.
Line 343 in 282ba02
Since includes
is a function, this.autoBoundAttributes.includes[attr]
should be this.autoBoundAttributes.includes(attr)
Avichay Eyal commented
great catch!
Would you pr?
Yavuz Tor commented
Sure. I will get that soon.