diff --git a/_deploy b/_deploy index 15c089a2afd..86dee3fe5a1 160000 --- a/_deploy +++ b/_deploy @@ -1 +1 @@ -Subproject commit 15c089a2afd31668d0d3662c8498998b9814ebe9 +Subproject commit 86dee3fe5a117e06d006e4736c485582dfe25ccd diff --git a/source/demo/frontend.html b/source/demo/frontend.html index 763effc6616..b1c6d302076 100644 --- a/source/demo/frontend.html +++ b/source/demo/frontend.html @@ -6279,7 +6279,7 @@ function(t,e){"use strict";function n(t,e){if(Array.isArray(t))return t;if(Symbo function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)}function o(t,e){var n=e.pane,r=e.filter,i=void 0===r?null:r;return c.toImmutable({pane:n,filter:i})}function a(t){return _.getInitialState()}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n :root { --dark-primary-color: #0288D1; @@ -17710,22 +17711,26 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN }, listeners: { - 'passwordInput.keydown': 'passwordKeyDown', + 'keydown': 'passwordKeyDown', 'loginButton.click': 'validatePassword', }, - // attached: function() { - // this.focusPassword(); - // }, + observers: [ + 'validatingChanged(isValidating, isInvalid)', + ], - isValidatingChanged: function(newVal) { - if (!newVal) { - setTimeout(this.focusPassword.bind(this), 0); + validatingChanged: function(isValidating, isInvalid) { + if (!isValidating && !isInvalid) { + this.$.passwordInput.value = ''; } }, - focusPassword: function() { - this.$.passwordInput.focus(); + isValidatingChanged: function(newVal) { + if (!newVal) { + this.debounce('focus-password', function() { + this.$.passwordInput.focus(); + }.bind(this), 1); + } }, passwordKeyDown: function(ev) { @@ -20402,6 +20407,62 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN }); })(); + + + + + + + +