Skip to content
Snippets Groups Projects
Verified Commit 0575b700 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed performance issue with tooltips generation

parent b6ecc511
No related branches found
No related tags found
No related merge requests found
import Vue from 'vue' import Vue from 'vue'
Vue.directive('tooltip', { Vue.directive('tooltip', {
inserted: function (el) { inserted: function (el) {
let elems = document.querySelectorAll('.tooltipped') let elems = el.parentElement.querySelectorAll('.tooltipped')
M.Tooltip.init(elems, {}) M.Tooltip.init(elems, {})
} }
}) })
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment