Has anyone used OnUpdate on InputCalendar lately? Is it me or this code snippet from it has a bug?
If(OnUpdate<>""," onUpdate : function(){$('#" + EncodeJavaScript( InputWidgetId) + "').blur();}," ,"") + " step : " + IntegerToText(YearStep) + ", cache : " + ToLower(BooleanToText(ReuseCalendarObject)) + " });
Hi, I just googled this exact issue and came cross your post.
To me it looks like a bug, especially considering the description against 'OnUpdate' =
The function that is called after the date is updated in the Input widget. Receives a reference to the calendar.
Looks like whatever is in OnUpdate, gets ignored and replaced with the blur() call.
As of December 2020, I can confirm that the Rich Widgets Calendar javascript still ignores the the argument to the OnUpdate parameter, and defaults to blurring the input widget if the argument is non-blank.