canjs / can-kefir

Reflects kefir streams so they can be used many places within CanJS.
https://canjs.com/doc/can-kefir.html
MIT License
3 stars 2 forks source link

emitterProperty with component ViewModel doesn't work #21

Closed cherifGsoul closed 5 years ago

cherifGsoul commented 5 years ago

Kefir.emitterProperty() as a value for a ViewModel doesn’t work with <input on:input:value:to="this.foo.value">

This CodePen demonstrate thes issue, when you fill the input you should see an error Uncaught TypeError: Cannot add property value, object is not extensible.

It seems that a @@can.hasKey symbol is needed in the emitterProperty object.

chasenlehara commented 5 years ago

Was this fixed?

cherifGsoul commented 5 years ago

@chasenlehara yes

cherifGsoul commented 5 years ago

Fixed and released https://github.com/canjs/can-kefir/releases/tag/v1.1.3