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

Add exit and exit-target commands for a non-looping scenario #280

Closed bob2517-whiteline closed 1 year ago

bob2517-whiteline commented 1 year ago

Currently, exit and exit-target are only set up when running loops inside events.

It should also be available for use in regular at-rule if statements in events that are not running inside loops. I just ran into this and couldn't work out why exit wasn't working, but these commands just haven't been implemented for non-loops yet.

The workaround, meanwhile, is to use the at-rule if statement as a wrapper to avoid using the exit or exit-target commands.

bob2517-whiteline commented 1 year ago

At least that's what it looks like without delving into the core. Might be something else wrong.

bob2517 commented 1 year ago

Red herring - this is actually working and the code looks fine for it. It must have been something I was doing on something else that was temporarily breaking it.