Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mbechev opened this issue Jul 3, 2024 · 0 comments
Open

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

mbechev opened this issue Jul 3, 2024 · 0 comments

Comments

@mbechev
Copy link
Contributor

mbechev commented Jul 3, 2024

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
2. Click View 1 button to switch the view.
3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant