From 47198549f73ef0682e57a74cac57e2177e90ea5e Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 21 Mar 2016 19:17:11 +0000 Subject: [PATCH] Fix unable to re-open datepicker after clicking 'today' --- api/js/etemplate/et2_widget_date.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/js/etemplate/et2_widget_date.js b/api/js/etemplate/et2_widget_date.js index a1aeb079f8..effc7bd79d 100644 --- a/api/js/etemplate/et2_widget_date.js +++ b/api/js/etemplate/et2_widget_date.js @@ -168,6 +168,11 @@ String: A string in the user\'s date format, or a relative date. Relative dates } },0); + }) + .datepicker('option','onClose', function(dateText, inst) { + // Lose focus, avoids an issue with focus + // not allowing datepicker to re-open + inst.input.blur(); }); }