File tree 3 files changed +5
-3
lines changed 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({
172
172
} ,
173
173
on : {
174
174
mousedown : this . onMousedown ,
175
+ touchstart : this . onMousedown ,
175
176
click : this . toggle ,
176
177
keydown : this . toggle // Handle ENTER, SPACE and DOWN
177
178
}
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export const BNavItemDropdown = /*#__PURE__*/ Vue.extend({
55
55
} ,
56
56
on : {
57
57
mousedown : this . onMousedown ,
58
+ touchstart : this . onMousedown ,
58
59
click : this . toggle ,
59
60
keydown : this . toggle // Handle ENTER, SPACE and DOWN
60
61
}
Original file line number Diff line number Diff line change @@ -346,10 +346,10 @@ export default {
346
346
this . show ( )
347
347
}
348
348
} ,
349
- // Mousedown handler for the toggle
349
+ // Mousedown/Touchstart handler for the toggle
350
350
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
353
353
// The event would otherwise be picked up by the global 'focusin'
354
354
// listener and there is no cross-browser solution to detect it
355
355
// relates to the toggle click
You can’t perform that action at this time.
0 commit comments