Stylish-Select
Stylish-Select copied to clipboard
iPad touch events not firing and .resetSS seemed to cause multiple bindings.
I was having a few issues with a single page Js / ajax site. These are just some small issues I encountered and how I resolved them. They might come in useful for someone.
With iPads I encountered issues where the touch events to open the select box would not fire, I know the simple example pages for stylishSelect work with this however with the items being manipulated in/out etc in my example, I updated some of the ".bind" events with ".on" and this resolved my issue. I didn't update them all just the ones required to fix issue but I guess updating all wouldn't hurt.
Also I found that (if i remember correctly) the '.resetSS();' was causing multiple bindings, adding a new one on top of the previous so I reverted to using .sSelect(); for updating. This seemed to work fine and destroy the old event rather than adding a new one on top which seemed to be the case in my implementation.
Great plugin, used it for years and thanks to all who have contributed. Cheers, Dave