jack-hermanson / chores

chores app
Other
0 stars 0 forks source link

Use regular javascript for filter toggling #37

Open jack-hermanson opened 5 months ago

jack-hermanson commented 5 months ago

Using htmx to retrieve the filter component from the server was overkill. Just use javascript and toggle display: none or something if possible.

jack-hermanson commented 5 months ago

How would this work after switching pages though? Or having a new search result come back that replaces the body of the page?

Local storage? But then we'd need an event to fire off every time, and it might briefly be open. I feel like there's no winning solution here.

jack-hermanson commented 5 months ago

Need a way for the server to respond with it already opened or clsoed, with the option to still toggle with JavaScript.

jack-hermanson commented 1 month ago

Way to do that would probably be toggling a class.