You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+1. It works on mobile, but you need to tap the color swatch twice, which feels like a sub-optimal user experience.
With a bit of experimentation I found that I could fix the issue by making two changes to bootstrap-colorselector.js:
Change 1:
$markupUl.on('click.colorselector', $.proxy(this._clickColor, this));
to
$markupUl.on('click.colorselector touchend.colorselector', $.proxy(this._clickColor, this));
Change 2:
Change
e.preventDefault();
to
// e.preventDefault();
i.e. comment out that line. For some reason, that was preventing the dropdown from closing once you tapped it on a touchscreen. And it doesn't seem necessary anyway on a normal screen.
I think should be have color selector for mobiles to users choose easier.
The text was updated successfully, but these errors were encountered: