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

Browser shouldn't scroll to calendar when it is inline, but only if it is popup #39

Open
FdeQuillettes opened this issue May 10, 2016 · 2 comments

Comments

@FdeQuillettes
Copy link

The browser will always scroll to the calendar on the datepick() call, even if it is inline. You can see an example if you make your window size very narrow (for intance 300px) and then loading http://keith-wood.name/datepick.html It will scroll to the calendar that is displayed in the introduction part.

@jpaulinoger
Copy link

I have the same problem, its really annoying. Any solution for this behavior?

@xaja
Copy link

xaja commented Apr 22, 2019

remove in min version:

var g=b.find("a, :input");g.eq(Math.max(Math.min(f,g.length-1),0)).focus() 

remove in full version:

var focus = elem.find('a, :input');
focus.eq(Math.max(Math.min(index, focus.length - 1), 0)).focus();

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

3 participants