splattater / testTickets

0 stars 0 forks source link

Sweetalert2 dialogs have issues getting focus when created #15

Open splattater opened 6 years ago

splattater commented 6 years ago

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

splattater commented 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

splattater commented 6 years ago

@Kurt, does it happen on experimental? In order to reproduce it and undertand better the problem.

by svalero

splattater commented 6 years ago

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