Skip to content
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

#8075 ensure we capture events in selection menu handlers #8096

Merged

Conversation

fungairino
Copy link
Collaborator

@fungairino fungairino commented Mar 29, 2024

What does this PR do?

Demo

Checklist

  • Add tests and/or storybook stories
  • Designate a primary reviewer @grahamlangford

@fungairino fungairino self-assigned this Mar 29, 2024
@fungairino fungairino linked an issue Mar 29, 2024 that may be closed by this pull request
@fungairino fungairino changed the title ensure we capture events in selection menu handlers #8075 ensure we capture events in selection menu handlers Mar 29, 2024
@@ -48,12 +48,6 @@ export const selectionMenuActionRegistry = new ActionRegistry();

let selectionMenu: Nullishable<HTMLElement>;

const onMousedownHide = (event: MouseEvent) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I moved this function closer to where it's used for better code organization

Copy link

codecov bot commented Mar 29, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 73.19%. Comparing base (f018004) to head (8bc9cf4).

Files Patch % Lines
...ript/textSelectionMenu/selectionMenuController.tsx 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8096      +/-   ##
==========================================
- Coverage   73.20%   73.19%   -0.01%     
==========================================
  Files        1310     1310              
  Lines       40730    40732       +2     
  Branches     7567     7569       +2     
==========================================
- Hits        29816    29815       -1     
- Misses      10914    10917       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fungairino fungairino merged commit 4359007 into main Mar 29, 2024
25 checks passed
Copy link

When the PR is merged, the first loom link found on this PR will be posted to #sprint-demo on Slack. Do not edit this comment manually.

@fungairino fungairino deleted the 8075-text-selection-menu-never-closes-on-notion-modals branch March 29, 2024 15:28
grahamlangford added a commit that referenced this pull request Apr 1, 2024
* get sidebar state in background

* starter mods sidebar panels are closed on install

* fix imports

* add sidebarStorage to strictNullChecks

* adds tests for sidebarStorage

* adds more test coverage

* add tests for getModComponentIdsForModComponentDefinitions

* renaming

* update factory to support overriding starterBrickType

* revert factory changes

* lint fixes

* add troubleshooting section to e2e tests readme (#8095)

* ensure we capture events in selection menu handlers (#8096)

* pr-related fixes

* Update src/background/starterMods.ts

Co-authored-by: Ben Loe <below413@gmail.com>

* fix types

---------

Co-authored-by: Eduardo Fungairino <eduardo@pixiebrix.com>
Co-authored-by: Ben Loe <below413@gmail.com>
@twschiller twschiller added this to the 1.8.12 milestone Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Text Selection Menu never closes on Notion modals
3 participants