Date picker in the new report UI filter is not working


Description

While creating/updating the report in the new UI, the filter is not allowing to select the date from the date picker. It throws a console error.


***ERROR****

TypeError: a.toLowerCase is not a function
    at n (momentjs.jsdbx:6)
    at e.set (momentjs.jsdbx:6)
    at m.onCalendarDateSet (js_includes_reportdesigner_platformdependencies.jsx?v=03-03-2021_0818&lp=Fri_Mar_26_09_50_03_PDT_2021&c=30_723:21514)
    at fn (eval at compile (js_includes_reportdesigner_platformdependencies.jsx?v=03-03-2021_0818&lp=Fri_Mar_26_09_50_03_PDT_2021&c=30_723:239), <anonymous>:4:394)
    at m.d.<computed> [as onSetTime] (js_includes_reportdesigner_platformdependencies.jsx?v=03-03-2021_0818&lp=Fri_Mar_26_09_50_03_PDT_2021&c=30_723:87)
    at Object.setTime (js_includes_reportdesigner_platformdependencies.jsx?v=03-03-2021_0818&lp=Fri_Mar_26_09_50_03_PDT_2021&c=30_723:20736)
    at b.changeView (js_includes_reportdesigner_platformdependencies.jsx?v=03-03-2021_0818&lp=Fri_Mar_26_09_50_03_PDT_2021&c=30_723:20751)
    at fn (eval at compile (js_includes_reportdesigner_platformdependencies.jsx?v=03-03-2021_0818&lp=Fri_Mar_26_09_50_03_PDT_2021&c=30_723:239), <anonymous>:4:605)
    at b (js_includes_reportdesigner_platformdependencies.jsx?v=03-03-2021_0818&lp=Fri_Mar_26_09_50_03_PDT_2021&c=30_723:130)
    at e (js_includes_reportdesigner_platformdependencies.jsx?v=03-03-2021_0818&lp=Fri_Mar_26_09_50_03_PDT_2021&c=30_723:284)


Snapshot

Release or Environment

All versions.

Cause

The custom "momentjs" configured in the customer instance is conflicting with the system "momentjs" and causing the error.

Resolution

Deactivating the custom "momentjs" file defined in the UI scripts would fix the issue. Navigate to the "UI Scripts" module and search for API name with "momentjs".

NOTE: The same functionality works in the classic UI even with the custom JS file. This could be a workaround until customer fixes their custom file.