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
I encountered kinda strange behaviour, I made a fullscreen modal for my project, which has sharing buttons. facebook, twitter, reddit, mail and...copy of URL with use of your library. However when I click on a button that opens that modal and useClippy is not commented then it scrolls 640 pixels in Y axis somehow. When I comment and not use useClippy then it works perfectly fine.
without useClippy:
with (at the top you can see my bookmarks bar for reference):
This is probably due to the need to mount an invisible DOM node. The focusing on the invisible textarea likely causes the page to scroll to where that textarea mounted. The CSS for that textarea should probably float it in the visible screen instead of what it's currently doing. I'll keep this in mind for when I have time to investigate this, but for now I'm specifying this as a possible cause in case anyone wants to attempt to PR it. 😊
I encountered kinda strange behaviour, I made a fullscreen modal for my project, which has sharing buttons. facebook, twitter, reddit, mail and...copy of URL with use of your library. However when I click on a button that opens that modal and useClippy is not commented then it scrolls 640 pixels in Y axis somehow. When I comment and not use useClippy then it works perfectly fine.
without useClippy:
with (at the top you can see my bookmarks bar for reference):
faulty code:
working code:
CSS (just in case):
The text was updated successfully, but these errors were encountered: