I've seen that the closing of the widget actually calls this function that gets the job done:
inputBlur: function () {
$container.removeClass(className.active);
if (settings.formatInput) {
var date = module.get.date();
var text = formatter.datetime(date, settings);
$input.val(text);
}
}
so, to fix (my) issue, it's enough to also format and update the $input after the refresh (as the create module somehow doesn't do it):
refresh: function () {
module.create.calendar();
var date = module.get.date();
var text = formatter.datetime(date, settings);
$input.val(text);
},
...but only when the widget is opened and then closed.
My initialzation:
I've seen that the closing of the widget actually calls this function that gets the job done:
so, to fix (my) issue, it's enough to also format and update the $input after the
refresh
(as thecreate
module somehow doesn't do it):Sounds sensible?