When a parent category is selected on a frontend form, all its subcategories should be automatically selected too. When a parent category gets deselected, all its subcategories should be automatically deselected too. This stopped working somehow. I can provide access to a different website where this works.
Will give more info on chat.