132
Views
2
Comments
Input_Calendar bug on OnUpdate?
Question

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)) + "
    });
2019-01-03 21-16-54
Nicolaas Kuit

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.

UserImage.jpg
Daniel Santos

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.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.