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() {
|
onClose() {
|
||||||
if (this.get("model.onClose") && this.get("model.username")) {
|
if (this.get("model.onClose") && this.get("model.username")) {
|
||||||
this.get("model.onClose")(this.get("model.username"));
|
this.get("model.onClose")(this.get("model.username"));
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
usernames=model.username
|
usernames=model.username
|
||||||
placeholderKey=placeholderKey
|
placeholderKey=placeholderKey
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
|
autofocus="autofocus"
|
||||||
}}
|
}}
|
||||||
<div class="assign-suggestions">
|
<div class="assign-suggestions">
|
||||||
{{#each assignSuggestions as |user|}}
|
{{#each assignSuggestions as |user|}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue