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

Screen auto scrolls up on link click #304

Open
daz-williams opened this issue Mar 21, 2022 · 2 comments
Open

Screen auto scrolls up on link click #304

daz-williams opened this issue Mar 21, 2022 · 2 comments

Comments

@daz-williams
Copy link

This is unexpected behavior

@plh4
Copy link

plh4 commented Jul 26, 2022

Same problem.. any solution?

@hiropgr
Copy link

hiropgr commented Dec 7, 2022

Solution in case you using jquery-modal via copying library files into your project

Replace <a href="#ex1" rel="modal:open">Open Modal</a>
with <a href="javascript:void(0);" data-modal="#ex1" rel="modal:open">Open Modal</a>
in your html file.

And replace target = el.attr('href');
with target = el.attr('data-modal');
in jquery-modal source js file

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