FEATURE: when only option is "existing topic", autofocus input field

This commit is contained in:
Arpit Jalan 2019-01-31 11:23:04 +05:30
parent f83533e1cb
commit 4786b7ff81
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
this.set("selection", canSplitTopic ? "new_message" : "existing_message");
} else if (!canSplitTopic) {
this.set("selection", "existing_topic");
Ember.run.next(() => $("#choose-topic-title").focus());
}
},