mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: when auto-selecting topic make sure the focus is on selected topic (#12083)
This commit is contained in:
@@ -113,6 +113,7 @@ export default Component.extend({
|
|||||||
this.set("selectedTopicId", topic.id);
|
this.set("selectedTopicId", topic.id);
|
||||||
next(() => {
|
next(() => {
|
||||||
document.getElementById(`choose-topic-${topic.id}`).checked = true;
|
document.getElementById(`choose-topic-${topic.id}`).checked = true;
|
||||||
|
document.getElementById(`choose-topic-${topic.id}`).focus();
|
||||||
});
|
});
|
||||||
if (this.topicChangedCallback) {
|
if (this.topicChangedCallback) {
|
||||||
this.topicChangedCallback(topic);
|
this.topicChangedCallback(topic);
|
||||||
|
|||||||
Reference in New Issue
Block a user