-
Notifications
You must be signed in to change notification settings - Fork 13.5k
bug: ionic vue, tabs do not detect dynamically generated tabs #22847
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
Comments
Thanks for the issue. Did you push your changes to the GitHub repo? It looks like there is just a default tabs starter app. |
Never mind, I was able to add in the code snippet in your post to reproduce the issue. |
Hi, sorry busy day at the office, yeah for some reason I forgot to push the commit to the repo sorry, It's now there. Were you able to reproduce it? |
Yeah I can reproduce the issue. Thanks! |
Any updates on how to fix this issue? |
Are there any workarounds for this? |
@lahdekorpi, it will be fix in 5.7.0 as @liamdebeasi added this issue to the 5.7.0 milestone 😉 |
Thanks @cwist2 |
Can everyone try the following dev build and let me know if it resolves the issue?
Thanks! |
@liamdebeasi dynamic tabs appear to work fine with those dev builds 👍 |
@liamdebeasi yes working now as should 👍 |
Thanks for the issue. This has been resolved via #23212, and a fix will be available in an upcoming release of Ionic Framework. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic version:
[ ] 4.x
[x] 5.x
Current behavior:
If tabs are created dynamically using a v-for like this:
When tapping a tab to navigate:
Uncaught TypeError: Cannot read property 'tab2' of undefined
tabState
seems to be empty ifion-tab-button
is not set manually in the templatesExpected behavior:
Should be possible to create tabs dynamically.
Steps to reproduce:
https://github.com/alvarosaburido/ionic-tabs-repro
ionic serve
Tab 2
TabRelated code:
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: