Closed ZeeshanAhmadKhalil closed 3 years ago
The workaround to solve this issue is that you can set your default tab to that tab where you have a calendar and then change it to the first tab using setTimeout()
in useEffect()
as follows;
useEffect(() => {
setTimeout(() => { //todo: workaround for calender not loading
setTabValue(0)
}, 10)
}, [])
But this is bad approach as user will first see calender tab and then 1st tab while opening the tabs.
Please refer to the support page and use Stack Overflow for help. If this is a bug, please supply a runnable, stripped-down demonstration.
I posted this issue as it was closed previously and there is still that problem.
This issue happens when you add a calendar in material UI tabs and switch to the tab where you have calendar:
Note: If your default tab is that tab where you have a calendar then that issue will not appear you have to switch from another to that tab where you have a calendar.
I have the calendar in
<ScheduledMeeting />
as follows: