🌐 AI搜索 & 代理 主页
Skip to content

Commit 7c74da7

Browse files
authored
Update dropdown.js
1 parent 0165a7f commit 7c74da7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mixins/dropdown.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Popper from 'popper.js'
22
import KeyCodes from '../utils/key-codes'
33
import warn from '../utils/warn'
4+
import { from as arrayFrom } from '../utils/array'
45
import { BvEvent } from '../utils/bv-event.class'
56
import { closest, contains, isVisible, requestAF, selectAll, eventOn, eventOff } from '../utils/dom'
67
import { isNull } from '../utils/inspect'
@@ -293,7 +294,7 @@ export default {
293294
this.$root[method](ROOT_DROPDOWN_SHOWN, this.rootCloseListener)
294295
this.setOnTouchStartListener(isOpen)
295296
},
296-
setOnTouchStartListener(isOpen) /* istanbul ignore next: JSDOM doesn't support `ontouchstart` */ {
297+
setOnTouchStartListener(isOpen) /* istanbul ignore next: JSDOM has no `ontouchstart` */ {
297298
// If this is a touch-enabled device we add extra empty
298299
// `mouseover` listeners to the body's immediate children
299300
// Only needed because of broken event delegation on iOS

0 commit comments

Comments
 (0)