Describe the bug
When the Scheduler component is hidden on a button click, the component steals the focus from the button, causing an undesired scrolling. Instead, the body was focused.
This behavior appears when there are events in the Scheduler. If the Scheduler data is empty, the bug is not reproduced.
To Reproduce
Click View 1 button to switch the view.
Notice that the button is not focused as it should be
Describe the bug When the Scheduler component is hidden on a button click, the component steals the focus from the button, causing an undesired scrolling. Instead, the body was focused.
This behavior appears when there are events in the Scheduler. If the Scheduler data is empty, the bug is not reproduced.
To Reproduce
View 1
button to switch the view.https://stackblitz.com/edit/angular-yjtvcf-xgefaz
Expected behavior The focus should remain on the last clicked button.