After banging my head on this for hours I think I found the issue. It has nothing to do with my logic and appears to be a bug with the expand/collapse functions in Velo - https://www.wix.com/velo/forum/coding-with-velo/expand-collapse-not-working-on-published-site - and, for anyone else looking, it likely affects show/hide functions also.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Collapsable Elements code | 10 | 869 | March 12, 2019 | |
| I keep getting error $w(...) collapse is not a function, but cant understand why | 4 | 473 | October 15, 2021 | |
| Hide & Show function not working | 10 | 947 | October 27, 2020 | |
| Bug? Collapse | 1 | 112 | September 25, 2018 | |
| Is there a bug on expand / collapse? | 5 | 107 | August 21, 2019 |