Closed nathawes closed 2 months ago
For example, the two property descriptors below have the same value and reflect transform functions:
define({ tag: 'issue-reproducer', reflected: { value: 'abc', reflect: value => value.toUpperCase() }, reflectedAndObserved: { value: 'abc', reflect: value => value.toUpperCase(), observe: () => console.log('change observed') } });
but their attribute values are reflected differently:
<issue-reproducer reflected="abc" reflected-and-observed="ABC"></issue-reproducer>
I think the call to reflect here might just need to be changed to fn.
reflect
fn
Thanks for the issue. I'll check it as soon as possible.
Fixed in cce3efde417849af9cdda557f9595adeeda75a7b
Thanks!
For example, the two property descriptors below have the same value and reflect transform functions:
but their attribute values are reflected differently:
I think the call to
reflect
here might just need to be changed tofn
.