mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: ensures focus is dropped before focus hyperlink input (#10653)
This commit is contained in:
parent
0972994c7e
commit
10bdf36a24
@ -27,7 +27,7 @@ export default Controller.extend(ModalFunctionality, {
|
||||
.closest(".modal-inner-container")
|
||||
.addEventListener("mousedown", this.mouseDown);
|
||||
|
||||
document.querySelector("input.link-url").focus();
|
||||
document.activeElement.blur();
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
import { next } from "@ember/runloop";
|
||||
import I18n from "I18n";
|
||||
import { dasherize } from "@ember/string";
|
||||
import { getOwner } from "discourse-common/lib/get-owner";
|
||||
@ -73,7 +72,7 @@ export default function (name, opts) {
|
||||
controller.set("model", model);
|
||||
}
|
||||
if (controller.onShow) {
|
||||
next(() => controller.onShow());
|
||||
controller.onShow();
|
||||
}
|
||||
controller.set("flashMessage", null);
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
placeholderKey="composer.link_url_placeholder"
|
||||
class="link-url"
|
||||
key-up=(action "search")
|
||||
autofocus="autofocus"
|
||||
}}
|
||||
{{#if searchLoading}}
|
||||
{{loading-spinner}}
|
||||
|
Loading…
Reference in New Issue
Block a user