Recently, I incorporated a switch toggle into my form to help filter products. I followed this guide. However, after submitting the form, the page reloads using ajax and the switch toggles back to its initial style before being toggled again. What could be causing this issue and how can I go about fixing it? Interestingly, when I click on the switch toggle and then refresh the entire page, the problem seems to disappear. Any suggestions or advice would be greatly appreciated.