listen both events
This commit is contained in:
parent
052a00dadb
commit
95e211ccb7
|
@ -29,7 +29,6 @@ import VueClickOutside from 'v-click-outside'
|
||||||
import PortalVue from 'portal-vue'
|
import PortalVue from 'portal-vue'
|
||||||
import VBodyScrollLock from './directives/body_scroll_lock'
|
import VBodyScrollLock from './directives/body_scroll_lock'
|
||||||
import VTooltip from 'v-tooltip'
|
import VTooltip from 'v-tooltip'
|
||||||
import MobileDetect from 'mobile-detect'
|
|
||||||
|
|
||||||
import afterStoreSetup from './boot/after_store.js'
|
import afterStoreSetup from './boot/after_store.js'
|
||||||
|
|
||||||
|
@ -44,7 +43,7 @@ Vue.use(PortalVue)
|
||||||
Vue.use(VBodyScrollLock)
|
Vue.use(VBodyScrollLock)
|
||||||
Vue.use(VTooltip, {
|
Vue.use(VTooltip, {
|
||||||
popover: {
|
popover: {
|
||||||
defaultTrigger: (new MobileDetect(window.navigator.userAgent)).mobile() ? 'click' : 'hover',
|
defaultTrigger: 'hover click',
|
||||||
defaultContainer: false,
|
defaultContainer: false,
|
||||||
defaultOffset: 5
|
defaultOffset: 5
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue