mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:36:39 +08:00
UX: when auto-selecting topic make sure the focus is on selected topic (#12083)
This commit is contained in:
parent
901d6080df
commit
c256b94ae0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user