Skip to content

A platform for community discussion. Free, open, simple.

UX: when auto-selecting topic make sure the focus is on selected topic (#12083)

Arpit Jalanc256b94ae0f1
diff --git a/app/assets/javascripts/discourse/app/components/choose-topic.js b/app/assets/javascripts/discourse/app/components/choose-topic.js
index 5957bdb7d5b..d69861281cd 100644
--- a/app/assets/javascripts/discourse/app/components/choose-topic.js
+++ b/app/assets/javascripts/discourse/app/components/choose-topic.js
@@ -113,6 +113,7 @@ export default Component.extend({
this.set("selectedTopicId", topic.id);
next(() => {
document.getElementById(`choose-topic-${topic.id}`).checked = true;
+ document.getElementById(`choose-topic-${topic.id}`).focus();
});
if (this.topicChangedCallback) {
this.topicChangedCallback(topic);