FIX: ensures autofocus is working

This commit is contained in:
jjaffeux 2020-09-11 16:48:00 +02:00
parent d9826cc608
commit bf98811165
2 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,10 @@ export default Ember.Controller.extend({
});
},
onShow() {
document.activeElement.blur();
},
onClose() {
if (this.get("model.onClose") && this.get("model.username")) {
this.get("model.onClose")(this.get("model.username"));

View File

@ -11,6 +11,7 @@
usernames=model.username
placeholderKey=placeholderKey
autocomplete="off"
autofocus="autofocus"
}}
<div class="assign-suggestions">
{{#each assignSuggestions as |user|}}