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
bug: vue, cannot wrap tab button in custom component #25919
Comments
Thanks for the issue! This issue has been labeled as Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed. If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue. For a guide on how to create a good reproduction, see our Contributing Guide. |
Reproduction can be found here: https://github.com/DoloreMentale/ion-tabs-bug-reproduction Besides that, the problem seems to be quite usual. I discovered that the issue is with wrapper component for ion-tab-button. Although the component is rendered without any additional tags, something that gets buttons inside ion-tab-bar cannot do that. Steps for recreation are the same:
|
Thanks. The problem here is that we expect the ionic-framework/packages/vue/src/components/IonTabBar.ts Lines 61 to 74 in 9b244dd
Since |
@liamdebeasi thanks for your reply! |
It would be really nice if this were stated in the docs. Spent a half an hour trying to figure out why I was getting this error. |
Prerequisites
Ionic Framework Version
Current Behavior
All ion-tab-buttons in my case are rendered using v-for.
tabState.activeTab and tabState.tabs are empty.
Found similar issue, seems it has been fixed in previos version, but problem still appears:
#22847
ion-tab-button click causes an error:
Expected Behavior
ion-tab-button click should push to another route
Steps to Reproduce
Just use v-for on ion-tab-button
ion-tabs:
ion-tab-button:
Code Reproduction URL
https://github.com/DoloreMentale/ion-tabs-bug-reproduction
Ionic Info
Ionic:
Ionic CLI : 6.19.0 (C:\nvm\v16.14.0\node_modules@ionic\cli)
Ionic Framework : @ionic/vue 6.2.6
Capacitor:
Capacitor CLI : 4.2.0
@capacitor/android : not installed
@capacitor/core : 4.2.0
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : 1.7.0
System:
NodeJS : v16.14.0 (C:\Program Files\nodejs\node.exe)
npm : 8.7.0
OS : Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: