Our powerful JS Calendar component

Post by jq123 »

I am running into an error when applying localization using the LocaleHelper and LocaleManager. The dates show up in the localized language (JP), and the L function labels are present. However, when I select a different date on the Calendar date selector, an error is thrown.

Any ideas why? I'm using v5.3.5.

Uncaught (in promise) Error: Calendar widget date ingestion must be passed a Date, or a YYYY-MM-DD date string

image (4).png
image (4).png (229.02 KiB) Viewed 76 times
    const localeName = 'default';
    const localeDesc = 'Default Locale';
    const localeCode = 'ja';

useEffect(() => {
        localCode: localeCode,
        DateHelper: {
            locale: localeCode,
}, []);

Note, I am using a useEffect to register the locale on initial render. If I do not use a useEffect, the UI does not load successfully, and I receive the following error:

Screenshot 2023-05-22 at 17.39.51.png
Screenshot 2023-05-22 at 17.39.51.png (99.9 KiB) Viewed 76 times

Post by Animal »

When you set a debugger breakpoint there, what is being passed as a date and from whom?

Post Reply