You-Dont-Need-JavaScript icon indicating copy to clipboard operation
You-Dont-Need-JavaScript copied to clipboard

Click on button for modal scrolls page to top

Open michaud opened this issue 9 years ago • 10 comments

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 :)

michaud avatar Jul 05 '16 13:07 michaud

I would like to work on this issue. So please assign the issue to me. Thank you in advance! @michaud

aditpatel4 avatar Oct 13 '21 05:10 aditpatel4

@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

michaud avatar Oct 15 '21 09:10 michaud

Hello @michaud, I would like to know more about this bug.

Blurry-Brush avatar Sep 30 '22 18:09 Blurry-Brush

Hello @michaud, I would like to work on this issue, Please assign it to me.

ghoshvidip26 avatar Oct 06 '22 07:10 ghoshvidip26

@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

michaud avatar Oct 13 '22 10:10 michaud

I would like to contribute in this issue. Please assign it to me.

aryayanroy avatar Sep 26 '23 07:09 aryayanroy

Hello, I would like to work on this. Can you assign this issue to me?

Nikhil-IITG avatar Oct 01 '23 14:10 Nikhil-IITG

Please assign this issue to me

Kedarnath-Rothe avatar Oct 10 '23 12:10 Kedarnath-Rothe