Jquery pickadate open and close same time

问题: We have a strange issue with pickadate.js v3.5.6., jQuery v3.3.1 When a user clicks on the element it opens the calander and call the close event in the same time. But if t...

问题:

We have a strange issue with pickadate.js v3.5.6., jQuery v3.3.1 When a user clicks on the element it opens the calander and call the close event in the same time. But if the user select a different tab in the browser and then return to the first tab, the calander is in open state. This is a new issue in an existing page. After the mouse click and the open / close, the element class is:

field a-picker picker__input valid picker__input--target

This is the setup:

        $('#monitor-time-days-picker').pickadate({
        format: 'dd.mm.yyyy',
        onSet: function () {
        }
    });

Has anyone experienced similar issue?

Thanks


回答1:

i'm facing the same problem on an existing website, with chrome (and only chrome).

Since yesterday, when i click an input with pickadate, it opens and closes in the same time.

I'm using jquery-3.2.1.

$('.datepicker').pickadate({
    closeOnSelect: true,
    onClose: function() {
        $('.datepicker').blur();
        $('.picker').blur();
    },
    min: new Date(),
    selectMonths: true,
    selectYears: 15
});

Before yesterday, this code works without any problem.


回答2:

Same issue here, since yesteray with jquery 3.1.0 is happening the same in a working website and only with chrome for pc (working well on mobile). Issue fixed with jquery 2.2.3

  • 发表于 2019-03-31 22:48
  • 阅读 ( 268 )
  • 分类:sof

条评论

请先 登录 后评论
不写代码的码农
小编

篇文章

作家榜 »

  1. 小编 文章
返回顶部
部分文章转自于网络,若有侵权请联系我们删除