禁用JQuery datetime插件上的自动滚动

时间:2016-05-20 18:07:44

标签: javascript jquery datetime

我在我的应用程序中使用JQuery datetime插件。当我向下或向上滚动页面时,如果我的鼠标指针遇到日期字段文本框,那么它会因滚动而更改日期。即使未在日期字段中输入日期,也会从当前日期向上或向下滚动日期。如何禁用这些日期字段上的滚动。您可以在此插件的官方页面中看到 DatePicker 字段中的此行为: http://xdsoft.net/jqplugins/datetimepicker/

2 个答案:

答案 0 :(得分:6)

将选项var sorted = Records .Select((r, x) => new KeyValuePair<DateTime, int>(r.BookoutDate, x)) .OrderBy(x => x.Key) .Select(x => x.Value) .ToList(); scrollMonth传递给false。

scrollInput

答案 1 :(得分:2)

将scrollMonth设置为false

react-router
相关问题