-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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: classList of undefined, navigating between tabs and no tabs #24654
Comments
Thanks for the issue. Does this issue reproduce in Ionic 6? There was a very similar issue fixed in 6.0.1: bf8e436 |
@liamdebeasi Yes it appears so, I ran Reloaded my VSCode window and restarted ionic serve and can still reproduce the issue. |
Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?
|
Tried it out on the sample project and it resolves the issue! |
Thanks for the issue. This has been resolved via #24665, 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. |
Prerequisites
Ionic Framework Version
Current Behavior
After navigating between multiple pages within a tabbed view, then navigating to a non-tabbed view, and then navigating back into the tabbed view, the app throws a javascript error "Cannot read property 'classList' of undefined" (which breaks further page processing in our main app)
Expected Behavior
There should be no javascript error when navigating from the non-tabbed view back to the tabbed view
Steps to Reproduce
Code Reproduction URL
https://github.com/jake-newsom/ionic-tab-example
Ionic Info
[WARN] Error loading @capacitor/ios package.json: Error: Cannot find module '@capacitor/ios/package'
[WARN] Error loading @capacitor/android package.json: Error: Cannot find module '@capacitor/android/package'
Ionic:
Ionic CLI : 6.17.0 (C:\Users\Jake\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/vue 5.9.3
Capacitor:
Capacitor CLI : 3.4.0
@capacitor/android : not installed
@capacitor/core : 3.4.0
@capacitor/ios : not installed
Utility:
cordova-res : 0.15.3
native-run : 1.5.0
System:
NodeJS : v14.17.3 (C:\Program Files\nodejs\node.exe)
npm : 6.14.13
OS : Windows 10
Additional Information
Steps that weirdly don't result in the error:
It only triggers if I view a sibling page within the tabbed view first
The text was updated successfully, but these errors were encountered: