RecipeFilter
RecipeFilter copied to clipboard
Added Touch support to the calls
On most mobile browsers, these would fire twice; once for touchstart and once for click, for example. I guess you wouldn't notice because the event handlers are safe to re-run as written.
I think we can play it safe by adding e.stopPropagation() and e.preventDefault(), as discussed in this brief post: https://joshtronic.com/2015/04/19/handling-click-and-touch-events-on-the-same-element/
Updated with event termination calls
After testing on mobile, this doesn't seem necessary. The 300ms delay between the events firing feels fine since so much precedent there on the web.