FIX: Can't login with enter key.
This commit is contained in:
parent
10068f86b6
commit
8471289831
|
@ -10,7 +10,7 @@ export default Ember.Component.extend({
|
||||||
this.set('loginName', $.cookie('email'));
|
this.set('loginName', $.cookie('email'));
|
||||||
}
|
}
|
||||||
|
|
||||||
Ember.run.schedule('afterRender', function() {
|
Ember.run.schedule('afterRender', () => {
|
||||||
$('#login-account-password, #login-account-name').keydown(e => {
|
$('#login-account-password, #login-account-name').keydown(e => {
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 13) {
|
||||||
this.sendAction();
|
this.sendAction();
|
||||||
|
|
Loading…
Reference in New Issue