Skip to content

Commit

Permalink
fix #669
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed May 15, 2016
1 parent 8dfc60b commit c70acc4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ class Picker {
if (option.hasAttribute('value')) {
item.dataset.value = option.getAttribute('value');
}
item.addEventListener('click', this.selectItem.bind(this, item, true));
let selectItem = (e) => {
this.selectItem(item, true);
e.preventDefault();
};
item.addEventListener('mousedown', selectItem);
item.addEventListener('touchstart', selectItem);
return item;
}

Expand Down

0 comments on commit c70acc4

Please sign in to comment.