-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
q-tab offsetwidth error #17664
Comments
Can someone help me change the label from "Qv1" to "Qv2"? I made a mistake. |
Hi, Please take the time to write up a reproduction Codepen with clear instructions. The one supplied is ours. Thank you. |
I also encountered this bug. Anyway the issues seems to be here in the q-tabs component
So maybe for now you can just wrap the update with an if statement
|
I have no experience with CodePen. How can I create a demo to demonstrate page switching functionality, preferably using a vue-router? |
I tried to create a reproduction here: |
Fix will be available in Quasar v2.17.5 |
Cool, Thanks :) |
What happened?
When I navigate from a page where q-tab is used to any other page, I get the following error:
QTabPanels-5q1hpjJq.js:1 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'offsetWidth') at QTabPanels-5q1hpjJq.js:1:6026
at index-lUfzcXt5.js:36:13635
What did you expect to happen?
The issue is specifically coming from this part:
The problem only occurs when this part is added.
Reproduction URL
https://codepen.io/rstoenescu/pen/VgQbdx
How to reproduce?
https://codepen.io/rstoenescu/pen/VgQbdx
Flavour
Quasar CLI (@quasar/cli | @quasar/app)
Areas
Components (quasar)
Platforms/Browsers
Firefox, Chrome, Microsoft Edge
Quasar info output
Relevant log output
Additional context
Apologies, I wasn't able to provide the code snippet earlier. The issue is happening in a more global context. It occurs when I switch to another menu in the layout, i.e., when the router is changed, the problem appears.
I am sory i use quasar version 2
The text was updated successfully, but these errors were encountered: