From 6af6fc8e1d1b342c9e83c77c5a7f47086d7a8f7f Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Thu, 12 Jul 2018 17:27:57 +0200 Subject: [PATCH] [Fix] Fixed username focus --- bower.json | 2 +- strolch-wc-auth.html | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 32b2ac4..540e269 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "strolch-wc-auth", "description": "Strolch WebComponent Auth", - "version": "0.6.4", + "version": "0.6.5", "authors": "Robert von Burg", "keywords": [ "strolch", diff --git a/strolch-wc-auth.html b/strolch-wc-auth.html index ad63e9e..7f29a8a 100644 --- a/strolch-wc-auth.html +++ b/strolch-wc-auth.html @@ -252,6 +252,11 @@ this.$.ajaxAuthCheck.generateRequest(); console.log("Validating session..."); } + + var that = this; + setTimeout(function () { + that.$.username.focus(); + }, 100); }, sessionValidated: function () {