Skip to content

Releases: firefox-devtools/react-contextmenu

v5.1.1

11 Oct 12:02
Compare
Choose a tag to compare

Fixes

  • Explicitely add the children prop to Typescript types definition so that React 18 users can still use this library #128. Thanks a lot @hackwater!

Internal

  • Development dependency updates.

Update: it looks like that the babel update changed some defaults, and now the transpilation result for the ES5 config targets more recent browsers than before. This is likely a breaking change as a result. If this is a problem to anyone, please file a bug and we can release a 5.1.2 without this transpilation change, and change the major version instead.

v5.1.0

20 Oct 14:40
Compare
Choose a tag to compare

New features

  • Supports specifying a different role for MenuItem component. This makes it possible to use menuitemcheckbox or menuitemradio. If you use one of these, please don't forget to add the attribute aria-checked as well, such as:
<MenuItem role="menuitemcheckbox" attributes={{ "aria-checked": true }}>Item</MenuItem>

And style it accordingly.

Internal

Changed some dev dependencies.

v5.0.0

14 Apr 07:06
Compare
Choose a tag to compare

Breaking

  • Use KeyboardEvent.key instead of KeyboardEvent.keyCode for the keyboard interaction
    • This drops support for Internet Explorer < 9 for the keyboard interaction. I'm not sure this was actually supported before that, but now we're sure it's not.

Fix

  • Support React v18. React v17 and before are still supported.
  • Fix colors in the CSS example page to make them contrasted enough for accessibility.

Internal

  • Migrate from enzyme to react-testing-library.
  • Various dev dependency updates.
  • Fix the selected page color in the examples page.

v4.0.0

07 Dec 14:03
afee2c1
Compare
Choose a tag to compare

Fix

  • Fixes keyboard navigation when the menu rerenders.

Breaking

  • Fixes the button filter by changing how it's implemented: instead of using mouseButton={0}, use triggerOnLeftClick={true}. Also it doesn't prevent the right click anymore. With the change in v3 the menu was always opening on left click.

Internal

  • examples: add the hash to the bundle file name in development mode so that reloading works.

v3.0.0

07 Dec 13:43
99a9f77
Compare
Choose a tag to compare

Fix:

  • Fix ctrl+click usage on Mac. (but this is broken, please use v4.0.0 instead)

Internal:

  • Rename the package to @firefox-devtools/react-contextmenu
  • Update dependencies
  • Set up Github actions