spatie / vue-tabs-component

An easy way to display tabs with Vue

Home Page:http://vue-tabs-component.spatie.be

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Javascript error if useUrlFragment not specified

jdooley511 opened this issue · comments

Hey there,

I'm not sure if it's intentional to require useUrlFragment to be specified or not, but if I do not specify anything, I get Javascript errors in the console anytime I click a tab:

Uncaught TypeError: Cannot read property 'useUrlFragment' of undefined at VueComponent.selectTab

If I specify it, everything works fine.
<tabs cache-lifetime="120" :options="{ useUrlFragment: false }">
and
<tabs cache-lifetime="120" :options="{ useUrlFragment: true }">

both work fine.

This is fixed in 1.2.2