You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The previous button is focused or nothing is focused at all.
What is actually happening?
nz-drawer components saves the first focused element.
So it will focus that one after drawer close.
Environment
Info
ng-zorro-antd
18.1.1
Browser
Chrome
It might not look like a big issue, but in my form, the buttons are far apart.
After closing the drawer, the element will be focused and the window will be scrolled to that element.
Maybe add option to focus or not?
The text was updated successfully, but these errors were encountered:
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-ivy-eqsoqx?file=src%2Fapp%2Fapp.component.ts
Steps to reproduce
The first button will be focused
What is expected?
The previous button is focused or nothing is focused at all.
What is actually happening?
nz-drawer components saves the first focused element.
So it will focus that one after drawer close.
It might not look like a big issue, but in my form, the buttons are far apart.
After closing the drawer, the element will be focused and the window will be scrolled to that element.
Maybe add option to focus or not?
The text was updated successfully, but these errors were encountered: