Active-CSS / active-css

The epic event-driven browser language for UI with functionality in one-liner CSS. Over 100 incredible CSS commands for DOM manipulation, ajax, reactive variables, single-page application routing, and lots more. Could CSS be the JavaScript framework of the future?
https://activecss.org
Other
42 stars 7 forks source link

If adding an attribute after render, reactivity on it was busted #137

Closed bob2517 closed 3 years ago

bob2517 commented 3 years ago

This is fixed offline.

If an attribute was set to be observed on a custom element, but it wasn't in there as an attribute until after it was drawn, then it wasn't working at all reactively.

The bug in the core was to skip registering the reactivity if the attribute wasn't there. Doh. So I removed that condition and it worked.

Will commit at some point over the next few days unless anyone yells for it to be on the latest branch.

bob2517 commented 3 years ago

Closing for milestone tracking.