mirror of https://github.com/moparisthebest/mail
fix dropdown toggle with touchstart
This commit is contained in:
parent
fc66df8894
commit
da872daa7d
|
@ -117,7 +117,10 @@ ngModule.directive('woDropdown', function($document, $timeout) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
elm.on('touchstart click', toggle);
|
elm.on('touchstart click', function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
toggle();
|
||||||
|
});
|
||||||
|
|
||||||
// close if user clicks button in dropdown list
|
// close if user clicks button in dropdown list
|
||||||
dropdown.on('touchstart.woDropdown click.woDropdown', 'button', disappear);
|
dropdown.on('touchstart.woDropdown click.woDropdown', 'button', disappear);
|
||||||
|
|
Loading…
Reference in New Issue