jQuery UI 1.7.3 datepicker conflict with date.js causing “too much recursion”?

前端 未结 2 904
花落未央
花落未央 2021-01-18 05:50

I\'m trying to use jQuery UI 1.7.3 datepicker widget in a jQuery UI dialog. The contents of the dialog are from a page template which includes all the various imports of ja

相关标签:
2条回答
  • 2021-01-18 05:53

    I'm successfully using the datepicker in a modal jqueryui dialog, version 1.8.9. But I'm including the .js as a 'all-in-one'.

    You should try to update jqueryui or use the complete package as one file for testing, and if it does not work, provide a failing test case so we can look at it.

    0 讨论(0)
  • 2021-01-18 06:05

    I'm running jQuery UI 1.7.3 and date.js as well for a modal window and was having the same problem. I was sending all of the scripts needed for the standalone page and for the dialog all in one go, but this meant that some of the same scripts were actually duplicated from the main application window to the dialog. Removing references to the duplicated scripts (for the dialog) fixed the problem.

    In essence, Date.js was being loaded twice, and fixing that fixed the problem.

    0 讨论(0)
提交回复
热议问题