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

Commit 319b6a7

Browse files
fixes #6306
1 parent f28d82b commit 319b6a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/mixins/dropdown.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import { clickOutMixin } from './click-out'
3636
import { focusInMixin } from './focus-in'
3737
import { idMixin, props as idProps } from './id'
3838
import { listenOnRootMixin } from './listen-on-root'
39+
import { HAS_TOUCH_SUPPORT } from '../constants/env'
3940

4041
// --- Constants ---
4142

@@ -386,7 +387,10 @@ export const dropdownMixin = Vue.extend({
386387
const { target } = event
387388
if (this.visible && !contains(this.$refs.menu, target) && !contains(this.toggler, target)) {
388389
this.clearHideTimeout()
389-
this.$_hideTimeout = setTimeout(() => this.hide(), this.inNavbar ? 300 : 0)
390+
this.$_hideTimeout = setTimeout(
391+
() => this.hide(),
392+
this.inNavbar ? (HAS_TOUCH_SUPPORT ? 300 : 50) : 0
393+
)
390394
}
391395
},
392396
// Document click-out listener

0 commit comments

Comments
 (0)