Date Picker not working as expected

Not sure if this is a bug or the way I am using the Date Picker. I am using the Date Picker in a Modal which is in an SPA page.

Working scenario : In a browser, when I go to this page and select the Date Picker, the Date Picker works as expected.

Problem scenario : When I then add-in either static Min Year and Max Year

or dynamic Min Year and Max Year

and then select the date field several times

image

the Date Picker then fails to display and

image

and I get the following errors in DevTools

Is the Moment framework included?

Yes it is

Try moving the moment js file before the datepicker js.

I have tried moving the files around without any success. I seem to have two moment js files (https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js and …/dmxAppConnect/dmxMoment/dmxMoment.js) but when removing the first one and saving the file, it simply returns, and removing the second one makes no difference.

I have noticed that if my range of years goes from say 2016 to 2022 inclusive, and I don’t select either 2016 or 2022 then everything seems to be OK. If I select 2016 or 2022 then it fails.

Both files must be on the page. Can you send me a link to the page, where I can check what’s wrong?

OK, currently on local machine but will make available tomorrow, cheers.