telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
463 stars 213 forks source link

[Scheduler] Steals the focus when hidden with ngIf* #4342

Open mbechev opened 6 days ago

mbechev commented 6 days ago

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

  1. Click View 1 button to switch the view.
  2. Notice that the button is not focused as it should be

https://stackblitz.com/edit/angular-yjtvcf-xgefaz

Expected behavior The focus should remain on the last clicked button.