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

Button close causes page to scroll to top #56

Open
rickleegit opened this issue Oct 30, 2015 · 3 comments
Open

Button close causes page to scroll to top #56

rickleegit opened this issue Oct 30, 2015 · 3 comments

Comments

@rickleegit
Copy link

Sorry if this has been covered, but is there any way to prevent this?

Thanks,

Rick

@tyrantkhan
Copy link

i'm experiencing this too

@kendrick
Copy link

kendrick commented Jul 7, 2016

This is expected if you're using href="#" within the close button <a> tag. Remove the href attribute altogether and the scroll position should stay fixed when the modal is closed.

@kamenomemo
Copy link

kamenomemo commented Jul 23, 2016

I resolved that problem by using onclick="return false;".
<a href="#" onclick="return false;"></a>

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

4 participants