Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'disabled' of undefined #62

Open
ZalgirisKaunas opened this issue May 15, 2019 · 2 comments
Open

Cannot read property 'disabled' of undefined #62

ZalgirisKaunas opened this issue May 15, 2019 · 2 comments

Comments

@ZalgirisKaunas
Copy link

When I load my app I get this even if my app works fine:

typeError: Cannot read property 'disabled' of undefined
    at VueComponent.changeTab (vue-tabs.js?53dd:137)
    at VueComponent.findTabAndActivate (vue-tabs.js?53dd:180)
    at VueComponent.value (vue-tabs.js?53dd:340)
    at Watcher.run (vue.runtime.esm.js?2b0e:3229)
    at flushSchedulerQueue (vue.runtime.esm.js?2b0e:2977)
    at Array.eval (vue.runtime.esm.js?2b0e:1833)
    at flushCallbacks (vue.runtime.esm.js?2b0e:1754)
@noook
Copy link

noook commented Feb 7, 2020

Having the same problem here. I'm removing an element from the list used to render the tabs and it happens everytime I try to remove the last element of the list.

@noook
Copy link

noook commented Feb 7, 2020

I may have found a solution to the issue. The problem is that I had a button on the tab that allows me to delete it just like a browser tab. What actually happens behind that, is that the click that tries to delete the tab also triggers the click event that navigates through tabs.

I solved the issue by adding an event modificator (.stop) on the click event from my button so that the event is not bubbled until it reaches the eventListener that changes tab.

<span
    @click.stop="removeFromActiveTabs(inter.id)">
  <img src="../assets/images/icons/i-times.svg" alt="remove icon">
</span>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants