React 19 introduced a heuristic based handling for custom elements where it attempts to set a property instead of an attribute if a scalar value is passed to an attribute, where the element has that same property defined on its prototype
TextExpander element has a get keys() on it's prototype, but not set keys(value) {} operation. this creates a situation where react tries to element.keys = ..... which fails because no setter is defined.
We should define a setter to help make this compat. I imagine this same issue would exist using preact or other, similar, vdom implementations
the error:
TypeError: Cannot set property keys of #<TextExpanderElement> which has only a getter
React 19 introduced a heuristic based handling for custom elements where it attempts to set a property instead of an attribute if a scalar value is passed to an attribute, where the element has that same property defined on its prototype
TextExpander element has a
get keys()on it's prototype, but notset keys(value) {}operation. this creates a situation where react tries toelement.keys = .....which fails because no setter is defined.We should define a setter to help make this compat. I imagine this same issue would exist using preact or other, similar, vdom implementations
the error: