File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ export const BDropdown = /*#__PURE__*/ Vue.extend({
172172 } ,
173173 on : {
174174 mousedown : this . onMousedown ,
175+ touchstart : this . onMousedown ,
175176 click : this . toggle ,
176177 keydown : this . toggle // Handle ENTER, SPACE and DOWN
177178 }
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export const BNavItemDropdown = /*#__PURE__*/ Vue.extend({
5555 } ,
5656 on : {
5757 mousedown : this . onMousedown ,
58+ touchstart : this . onMousedown ,
5859 click : this . toggle ,
5960 keydown : this . toggle // Handle ENTER, SPACE and DOWN
6061 }
Original file line number Diff line number Diff line change @@ -346,10 +346,10 @@ export default {
346346 this . show ( )
347347 }
348348 } ,
349- // Mousedown handler for the toggle
349+ // Mousedown/Touchstart handler for the toggle
350350 onMousedown ( evt ) {
351- // We prevent the 'mousedown' event for the toggle to stop the
352- // 'focusin' event from being fired
351+ // We prevent the 'mousedown'/'touchstart' event for the toggle
352+ // to stop the 'focusin' event from being fired
353353 // The event would otherwise be picked up by the global 'focusin'
354354 // listener and there is no cross-browser solution to detect it
355355 // relates to the toggle click
You can’t perform that action at this time.
0 commit comments