We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 082821c commit 515529cCopy full SHA for 515529c
app/assets/javascripts/discourse/app/components/quote-button.js
@@ -378,11 +378,10 @@ export default Component.extend(KeyEnterEscape, {
378
379
schedule("afterRender", () => {
380
if (this.site.mobileView) {
381
- this.element.style.left = `${
382
- (window.innerWidth - this.element.clientWidth) / 2
383
- }px`;
+ this.textRange = document.querySelector("#main-outlet");
+ this._popper?.update();
384
}
385
- document.querySelector("#fast-edit-input")?.focus();
+ next(() => document.querySelector("#fast-edit-input")?.focus());
386
});
387
} else {
388
const postId = this.quoteState.postId;
0 commit comments