File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import { clickOutMixin } from './click-out'
3636import { focusInMixin } from './focus-in'
3737import { idMixin , props as idProps } from './id'
3838import { 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
You can’t perform that action at this time.
0 commit comments