|
|
@ -0,0 +1,11 @@ |
|
|
|
--- untainted/app/javascript/mastodon/components/modal_root.js
|
|
|
|
+++ tainted/app/javascript/mastodon/components/modal_root.js
|
|
|
|
@@ -66,7 +66,7 @@
|
|
|
|
// immediately selectable, we have to wait for observers to run, as |
|
|
|
// described in https://github.com/WICG/inert#performance-and-gotchas |
|
|
|
Promise.resolve().then(() => { |
|
|
|
- this.activeElement.focus();
|
|
|
|
+ this.activeElement.focus({ preventScroll: true });
|
|
|
|
this.activeElement = null; |
|
|
|
}).catch((error) => { |
|
|
|
console.error(error); |