FIX: ensures autofocus is working
This commit is contained in:
parent
d9826cc608
commit
bf98811165
|
|
@ -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"));
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
usernames=model.username
|
||||
placeholderKey=placeholderKey
|
||||
autocomplete="off"
|
||||
autofocus="autofocus"
|
||||
}}
|
||||
<div class="assign-suggestions">
|
||||
{{#each assignSuggestions as |user|}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue