1

我已经使用eonasdan bootstrap-datetimepicker几个月了,并且刚刚实现了一个月份选择器,但是每次我选择一个月时都会在 Chrome 的控制台视图中注意到以下内容(这也发生在阅读文档示例中)

Uncaught TypeError: undefined is not a function  bootstrap-datetimepicker.js:508
fillDate                                         bootstrap-datetimepicker.js:508
actions.selectMonth                              bootstrap-datetimepicker.js:754
doAction                                         bootstrap-datetimepicker.js:898
jQuery.event.dispatch                            jquery-1.11.1.js:4641
jQuery.event.add.elemData.handle                 jquery-1.11.1.js:4309

它似乎是由以下原因引起的:

// widget is false after the picker is collapsed
// I've added if(!widget) return;
var daysView = widget.find('.datepicker-days'),
                    daysViewHeader = daysView.find('th'),
                    currentDate,
                    html = [],
                    row,
                    clsName;

现在我已经添加了一个条件,在调用 find 之前检查小部件,但由于它是一个 nuget 包,我希望下一次更新会清除我的更改,我不知道这个更改会产生什么影响其他用途。

这是一个已知的问题?有解决办法吗?我如何将此提交给开发人员?

谢谢

4

0 回答 0