From db1539747bd78dd1c90d34d829982493a7c7d697 Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Tue, 16 Dec 2014 12:27:08 -0800 Subject: [PATCH] Trigger Change Event before Login Ref #4651 - Manually triggering the change event ensures compatibility with legacy password managers and browsers not properly firing events on autofill (which leads to Ember not picking up the entered values) --- core/client/controllers/signin.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/client/controllers/signin.js b/core/client/controllers/signin.js index 2be6f1fb00..924e7b3367 100644 --- a/core/client/controllers/signin.js +++ b/core/client/controllers/signin.js @@ -15,6 +15,10 @@ var SigninController = Ember.Controller.extend(SimpleAuth.AuthenticationControll validateAndAuthenticate: function () { var self = this; + // Manually trigger events for input fields, ensuring legacy compatibility with + // browsers and password managers that don't send proper events on autofill + $('#login').find('input').trigger('change'); + this.validate({format: false}).then(function () { self.notifications.closePassive(); self.send('authenticate');