简体   繁体   English

DaterangePicker,然后单击同一项目

[英]DaterangePicker and second click on same item

I am using Bootstrap Date Range Picker and I am trying to enable a second click on the same date range. 我正在使用Bootstrap日期范围选择器,并且试图在同一日期范围内再次单击。

Ex: User clicks on "today" and gets results, then clicks again 5 minutes after and gets the updated results. 例如:用户单击“今天”并获取结果,然后在5分钟后再次单击并获取更新的结果。

Everything works fine on the first click but due to line 298 .on('click', 'li', $.proxy(this.clickRange, this)) the click gets unbound on that item. 第一次单击时一切正常,但由于第298行, .on('click', 'li', $.proxy(this.clickRange, this))对该项目的点击没有限制。

I looked everywhere to try and correct it to no avail. 我四处张望,试图纠正它无济于事。

The callback is only fired when a new date range is selected. 仅当选择新的日期范围时才触发回调。

If you'd like to change the behavior, this is the line to change . 如果您想更改行为,请更改这一行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM