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

This commit is contained in:
Arpit Jalan 2021-02-15 16:12:45 +05:30 committed by GitHub
parent 901d6080df
commit c256b94ae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);