Skip to content

Commit

Permalink
Close tooltip after navigating to a new route
Browse files Browse the repository at this point in the history
  • Loading branch information
kutaloweb committed Feb 11, 2019
1 parent 81f6c54 commit c86d4d7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions resources/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import VuejsDialog from "vuejs-dialog"
import Sortable from 'vue-sortable'
import paginationRecord from './components/PaginationRecord'
import showError from './components/ShowError'
import { VTooltip } from 'v-tooltip'

window._get = require('lodash/get');
window._eachRight = require('lodash/eachRight');
Expand Down Expand Up @@ -48,13 +49,7 @@ Vue.use(VuejsDialog, {
});
Vue.use(Sortable);

Vue.directive('tooltip', function(el, binding){
$(el).tooltip({
title: binding.value,
placement: 'top',
trigger: 'hover focus'
})
});
Vue.directive('tooltip', VTooltip);

Vue.component('pagination-record', paginationRecord);
Vue.component('show-error', showError);
Expand Down

0 comments on commit c86d4d7

Please sign in to comment.