You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(clipboard): scroll position changing while copying on some browsers (#20073)
The clipboard module works by creating a `textarea` dynamically, focusing it and copying its content. In order to prevent it from affecting the page layout, we put it at `-999em` off-screen, but the problem is that some browsers will try to move it into the view on focus by scrolling up.
These changes use `position: fixed` and anchor the textarea to the top of the page so vertically it's within the viewport.
(cherry picked from commit a6f1a33)
0 commit comments