Vuetify: [Bug Report] Tabs is not working properly with modal

Created on 14 Mar 2018  路  4Comments  路  Source: vuetifyjs/vuetify

Versions and Environment

Vuetify: 1.0.3
Vue: 2.5.11
Browsers: Chrome 64.0.3282.186
OS: Windows 10

Steps to reproduce

Load the pen, open modal, then try to click on tabs.

Expected Behavior

On first load of modal the first element of tab should be selected.

Actual Behavior

On initial modal load there are no selected tab.

Reproduction Link

https://codepen.io/Wildstyles/pen/bvperv?editors=1010

wontfix

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

All 4 comments

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

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

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

Was this page helpful?
0 / 5 - 0 ratings

Related issues

itanka9 picture itanka9  路  3Comments

ricardovanlaarhoven picture ricardovanlaarhoven  路  3Comments

milleraa picture milleraa  路  3Comments

efootstep picture efootstep  路  3Comments

SteffenDE picture SteffenDE  路  3Comments