You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug
I have a quasar application where I need to use both QCalendarDay and QCalendarAgenda. On the initial page load, components seem to load just fine, visually it's ok but mouse events don't fire at all. The only error in the console I get is when I navigate to the page with my q-calendar components from some other pages. The error is:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'offsetWidth') QTabs.js:181:1
This is the function on line 181 that causes the error:
My theory
I assume you use QTabs for changing calendar view and on navigation the function recalculateScroll() is called before the component is mounted.
I use QTabs on another page in my application and don't get the same problem.
My component for q-calendar handling looks like this.
Please note that on calendar view change, ref value get changed and mouse events start to work but I expect them to work from the start.
My default calendar mode is day. So when I change to agenda, agenda works. And when I change the mode back to day, day also start to work.
My setup:
Vue3, script setup
Quasar: ^2.6.0
quasar-ui-qcalendar: ^4.0.0-beta.15
vue-router: ^4.0.0
vueRouterMode: history
The text was updated successfully, but these errors were encountered:
The bug
I have a quasar application where I need to use both QCalendarDay and QCalendarAgenda. On the initial page load, components seem to load just fine, visually it's ok but mouse events don't fire at all. The only error in the console I get is when I navigate to the page with my q-calendar components from some other pages. The error is:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'offsetWidth') QTabs.js:181:1
This is the function on line 181 that causes the error:
My theory
I assume you use QTabs for changing calendar view and on navigation the function
recalculateScroll()
is called before the component is mounted.I use QTabs on another page in my application and don't get the same problem.
My component for q-calendar handling looks like this.
Please note that on calendar view change, ref value get changed and mouse events start to work but I expect them to work from the start.
My default calendar mode is day. So when I change to agenda, agenda works. And when I change the mode back to day, day also start to work.
My setup:
The text was updated successfully, but these errors were encountered: