From 28febe25f7403f5ac862d3baf666e1f843f9553f Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 30 Jan 2017 09:52:36 -0700 Subject: [PATCH] Give all the other stuff a chance to run before we try to set focus - fixes focus is set then lost on the first time you set filter by start or due date --- infolog/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infolog/js/app.js b/infolog/js/app.js index 023776e91d..7efae9eef0 100644 --- a/infolog/js/app.js +++ b/infolog/js/app.js @@ -214,7 +214,9 @@ app.classes.infolog = AppJS.extend( if (filter && dates) { dates.set_disabled(false); - jQuery(this.et2.getWidgetById('startdate').getDOMNode()).find('input').focus(); + window.setTimeout(function() { + jQuery(dates.getWidgetById('startdate').getDOMNode()).find('input').focus(); + },0); } break; default: