Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Touchstart for select/deselect event #128

Open
helenawin opened this issue Jul 30, 2019 · 0 comments
Open

Touchstart for select/deselect event #128

helenawin opened this issue Jul 30, 2019 · 0 comments

Comments

@helenawin
Copy link

Tested on Safari iphone 7, had to double tap items in dropdown box to select/deselect them. Hard-fixed by adding touchstart eventlistener for mobile devices with the same function as it is now only for click. (line 1339 /src/selectr.js)

this.tree.addEventListener("click", function(e) { var item = util.closest(e.target, function(el) { return el && util.hasClass(el, "selectr-option"); });

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant