I know how to brute force this, but wondering if there is a way that I can do this more intelligently.
It’s simply a filter that has a disabled button when nothing has changed. What would be the best way to store the “state” of the filters, and do checks each time the filters are interacted with to enable/disable the submit button?. I.e., checkbox 1 on default was selected, If I unselect it, the button would become enabled, if I reselected it, the button would become disabled. If I submit the button when it’s enabled, how do I store that new combination of selections to reenable the button. Hope that makes sense!
[X] Checkbox 1
[ ] Checkbox 2
[ ] Checkbox 3
[Disabled Submit Button]
EDIT: Maybe related to this but it does not take into account that a checkbox can be preselected on load. Triggering Different Actions Based on Number of Checkboxes Selected