fix(popupreply): Move PopupReply into new PopupManager layer#603
Merged
ConradJChan merged 4 commits intobox:masterfrom Sep 25, 2020
Merged
fix(popupreply): Move PopupReply into new PopupManager layer#603ConradJChan merged 4 commits intobox:masterfrom
ConradJChan merged 4 commits intobox:masterfrom
Conversation
b132dc6 to
2c9fc1c
Compare
Contributor
|
Could you add a gif of the experience? |
ChenCodes
reviewed
Sep 24, 2020
ChenCodes
reviewed
Sep 24, 2020
ChenCodes
reviewed
Sep 24, 2020
Contributor
Author
|
@ChenCodes Updated with screenshots -- before the highlight would appear above the create region |
mingzexiao6
reviewed
Sep 24, 2020
2c9fc1c to
9dc2be9
Compare
ChenCodes
reviewed
Sep 25, 2020
ChenCodes
reviewed
Sep 25, 2020
ChenCodes
reviewed
Sep 25, 2020
ChenCodes
reviewed
Sep 25, 2020
ChenCodes
reviewed
Sep 25, 2020
ChenCodes
reviewed
Sep 25, 2020
jstoffan
previously approved these changes
Sep 25, 2020
| status, | ||
| } = props; | ||
|
|
||
| const [reference, setReference] = React.useState<PopupReference | null>(null); |
Collaborator
There was a problem hiding this comment.
Is the extra state here needed or can we derive and pass the virtualElement directly in render?
Contributor
Author
There was a problem hiding this comment.
I had originally done just that, but I think the fact that virtualElement was a new object each render caused some wonky behavior in IE11
jstoffan
approved these changes
Sep 25, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
With the way that
PopupReplywas rendered in the same layer as the annotation-specific layer (region, highlight), the popup in some browsers (ie11) would be beneath other drawn annotation elements, depending on what order the annotation layers were configured.Overview
Creates a new
PopupManagerthat renders thePopupReplyfor the staged annotation, regardless of annotation type so that it can always be the top layer.Before

After

TODO