Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有一个bug #37

Open
seven0404 opened this issue Jun 26, 2017 · 1 comment
Open

有一个bug #37

seven0404 opened this issue Jun 26, 2017 · 1 comment

Comments

@seven0404
Copy link

在移动端,快速上下滑动秒,在动画还没有停下来的情况下点击确定,会有死循环报错
LCalendar.js:443 Uncaught TypeError: Cannot read property 'querySelector' of null
而且重现率非常的高。不只是秒。年也会这样,只要是那种选择比较多。动画比较长的久会出现,
我修改了一下。
在重置时间节点和重置日期节点中加了个
try{
var time_hh = _self.gearDate.querySelector(".time_hh");
}catch(err){}
这样就避免报错了。但是也有一个小问题,那就是只有等到动画结束后才能点击确定。这样才能选择上,不让选择不上。当然这样也比死循环报错好点,希望博主改正一下;
最后🙏感谢博主无私贡献,

@nankeer
Copy link

nankeer commented Jul 18, 2017

我也发现了这个问题,我是把LCalendar.js Line:703 "_self.gearDate=null" 注释掉。但是滚动没有停止之前点击确定后,日期不会改变

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants