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

Rendering a custom element inside a strictly private component renders it twice in componentOpen event #207

Closed bob2517 closed 2 years ago

bob2517 commented 2 years ago

This is only an issue in the component event "componentOpen" and works as expected everywhere else.

It works fine if you specify the component by reference, like render: "{|myTag}".

But it just draws it twice when you do render: "\";

It looks like it's related to the sequence with which components get rendered. Custom elements render automatically in a separate place in the core to the main component render, which is where I suspect the problem lies. It would explain the double render, because the same render code would get called twice.

It's a niche bug, but it needs to get fixed as it may show up any other flaws, so I'm doing this one now.

bob2517 commented 2 years ago

Back on this. Focus!

bob2517 commented 2 years ago

Note to self: test code in component-ajax example

bob2517 commented 2 years ago

This is fixed offline and will commit shortly.

bob2517 commented 2 years ago

Closing in preparation for release.