Click on button for modal scrolls page to top
In the modal example, when you click on the button to show the modal, the modal shows but the page also scrolls to the top. This would end up as a bug in our backlog :)
I would like to work on this issue. So please assign the issue to me. Thank you in advance! @michaud
@aditpatel4 sorry, I don't think I have the proper rights to assign issues in this repository, so I can't help you, you should ask the admin
Hello @michaud, I would like to know more about this bug.
Hello @michaud, I would like to work on this issue, Please assign it to me.
@Blurry-Brush @Vidip-Ghosh I don't have the rights to assign issues. If an admin can assign it I don't mind, be my guest @stevemao . Here is a reproduction script:
- navigate to https://github.com/you-dont-need/You-Dont-Need-JavaScript#Modal
- load the first example https://codepen.io/peiche/pen/kQwYVJ
- change the browser window height so that the html content starts to scroll
- scroll to the bottom
- click on 'click me'
- the modal appears but in the background the content scrolls to the top
- if the button is somewhere in the middle of a page it would scroll away from that location and confuse the user
I would like to contribute in this issue. Please assign it to me.
Hello, I would like to work on this. Can you assign this issue to me?
Please assign this issue to me