Hi All,
There is an UI Specific case handled in Calendar component.Scenario is :
when user is in Month/Week view they can see the list of events in different weeks/months and can perform the actions.When user goes to team view (timeline) using toggle switch by toggling it we will load a bunch/volume of data based on resources.This will be huge so we need to show user a loading state in UI by showing a spinner/loader to make sure data is loading in background.Once data is loaded,loader will be hidden and data will be represented.The Problem here is when this case is implemented we have noticed the team view toggle gets switched off once loader goes off and data gets represented according to resources in team view.We have debugged and printed the state of the mode based on it and everything is fine according to the actions.So need your thoughts on this what makes the switch toggled off again.Will share a sample video to explain it further.
In the above video you can see the team view toggle gets switched on and loader gets visible and team view data gets represented.After data is loaded,loader gets hidden but toggle automatically gets switched off.