Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted () {
this.updateSlot()
this.mdcTabBar = MDCTabBar.attachTo(this.$el)
this.slotObserver = new MutationObserver(() => this.updateSlot())
this.slotObserver.observe(this.$el, {
childList: true,
subtree: true
})
},
beforeDestroy () {
this.$nextTick(() => {
this.mdcTabBar = MDCTabBar.attachTo(this.$el)
this.mdcTabBar.focusOnActivate = this.focusOnActivate
this.mdcTabBar.useAutomaticActivation = this.useAutomaticActivation
})
},