Open splattater opened 6 years ago
Soledad Valero please could you look at the issues raised by Kurt and see if you can help address this as you are our expert on modals and managing focus !
by ajames
@Kurt, does it happen on experimental? In order to reproduce it and undertand better the problem.
by svalero
We saw this in the request deck edit rights modals/alerts. If you request deck edit rights a second time a sweetalert opens but a button at the background has the focus. Using TAB one time brings focus to the close button in the alert.
by tboonx
In general the sweetalert2 dialog gets focus on the confirm button.
But e.g. if a user clicks request deck edit rights in the deck view component, then the modal closes, the sweetalert2 dialog gets opened and the edit button in the deck view components keeps the focus.
I tried it with the latest version of sweetalert2 but it made no difference. Also the new version introduces breaking changes.
setting the focus via JS after creating the dialog didnt work.
[SWIK-2127] created by tboonx