-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Clicking + to add annotation scrolls page back up #4570
Comments
Curious to see how this gets solved... I noticed this behavior affects a few text inputs as well. |
Probably a |
Did a quick test and removing |
Nope, no change from updating antd. Not sure what's causing the issue then. |
@samwinslow Hmm interesting, I'm gonna take a stab at this one now, but could you point me to specific text inputs where we see similar issues? Maybe I can batch all the fixes up in one PR if they're related |
Okay after a bit of digging I think I see what's happening. Some ContextThere are two types of
Root CauseFor the first type of marker (annotations we already know exist), we render them on first mount of the graph since we know where these markers should be positioned. We see them being appended to the end of For the second type of marker (modal to create an annotation), the modal's position depends on which date the user has clicked on to create an annotation. Today's code dynamically renders an When the user clicks away or closes the modal, the Solution
Using |
Closed with #4610 |
Bug description
Peek.2021-06-02.15-46.mp4
This makes adding annotations especially annoying
Expected behavior
No scrolling
How to reproduce
Environment
Additional context
Thank you for your bug report – we love squashing them!
The text was updated successfully, but these errors were encountered: