Lucas_Werkmeister_WMDE claimed this task. Lucas_Werkmeister_WMDE added a comment. |
After banging my head into this for a while…
It turns out that restoring the focus to the button that originally opened a modal is actually a feature of Bootstrap. And the way that Bootstrap does this (node_modules/bootstrap/js/modal.js, right at the end) is wrapped in so many event listeners that I can’t figure out a way for our own code to run after Bootstrap’s focus restorer, so there’s no good place for us to put some code that focuses the editor. A setTimeout will have to do.
TASK DETAIL
EMAIL PREFERENCES
To: Lucas_Werkmeister_WMDE
Cc: Aklapper, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst, Avner, debt, Gehel, Jonas, FloNight, Xmlizer, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
Cc: Aklapper, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst, Avner, debt, Gehel, Jonas, FloNight, Xmlizer, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs