Vuetify: 1.0.3
Vue: 2.5.11
Browsers: Chrome 64.0.3282.186
OS: Windows 10
Load the pen, open modal, then try to click on tabs.
On first load of modal the first element of tab should be selected.
On initial modal load there are no selected tab.
That is because tabs uses the dom in order to position the slider. While it is in the dialog, it has no dimensions to measure. The proper way to do this would be to add the lazy prop to the dialog.
I see an issue has been filed for this no fewer than 3 times (and I'm here because I encountered it also).
Would be great if this gotcha (and solution) could be added somewhere on the tabs docs page.
@jdunk good idea imho, please create an issue in vuetifyjs.com repo
Most helpful comment
That is because tabs uses the dom in order to position the slider. While it is in the dialog, it has no dimensions to measure. The proper way to do this would be to add the lazy prop to the dialog.
https://codepen.io/johnjleider/pen/dmMNrv?editors=1010