cannot override browser default for date picker Edited

I try to add an AUI date picker following this : 

https://docs.atlassian.com/aui/latest/docs/date-picker.html

 

I try to add 

AJS.$(document).ready(function() {
AJS.$('#demo-range-always').datePicker({'overrideBrowserDefault': true});
});

 

However , the it gets error when deploy : 

aui-datepicker.js:1619 Uncaught TypeError: Cannot read property 'msie' of undefined
at Datepicker._generateHTML (aui-datepicker.js:1619)
at Datepicker._updateDatepicker (aui-datepicker.js:730)
at Datepicker._inlineDatepicker (aui-datepicker.js:299)
at Datepicker._attachDatepicker (aui-datepicker.js:183)
at HTMLDivElement.<anonymous> (aui-datepicker.js:1855)
at Function.each (jquery-1.12.4.js:370)
at jQuery.fn.init.each (jquery-1.12.4.js:137)
at jQuery.fn.init.__601fc554d291439a8ef8bcac7fc51f19.$.fn.datepicker (aui-datepicker.js:1851)
at initCalendar (aui-datepicker.js:2036)
at aui-datepicker.js:2173

 

I also try to add in atlassian-plugin.xml

<web-resource key="date-picker" name="Date Picker">
<dependency>com.atlassian.auiplugin:aui-date-picker</dependency>
</web-resource>

 and in the velocity file

$webResourceManager.requireResource("com.adsk.jira.tryThis:date-picker")
<script src="//aui-cdn.atlassian.com/aui-adg/6.0.8/js/aui-experimental.js"></script>
<script src="//aui-cdn.atlassian.com/aui-adg/6.0.8/js/aui-datepicker.js"></script>

 

but no help.

 

1 answer

This widget could not be displayed.

anyone experience this before ????

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

64 views 2 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you