Skip to content

fix(highlight): Remove selection when clicking anywhere outside of popup#615

Merged
mingzexiao6 merged 4 commits intobox:masterfrom
mingzexiao6:fix-popuphighlight
Oct 6, 2020
Merged

fix(highlight): Remove selection when clicking anywhere outside of popup#615
mingzexiao6 merged 4 commits intobox:masterfrom
mingzexiao6:fix-popuphighlight

Conversation

@mingzexiao6
Copy link
Contributor

@mingzexiao6 mingzexiao6 commented Oct 3, 2020

  • Unit tests
  • Cross-browser testing

};

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
useOutsideEvent('mousedown', popupRef.current?.popupRef!, onCancel);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't useOutsideEvent already expect a RefObject? Or is this to get at the underlying HTMLElement`

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it needs the underlying HTMLElement.

@mingzexiao6 mingzexiao6 marked this pull request as ready for review October 6, 2020 17:36
@mingzexiao6 mingzexiao6 requested a review from a team as a code owner October 6, 2020 17:36
Copy link
Collaborator

@jstoffan jstoffan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mingzexiao6 mingzexiao6 merged commit 403d962 into box:master Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants