Releases: firefox-devtools/react-contextmenu
Releases · firefox-devtools/react-contextmenu
v5.1.1
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
New features
- Supports specifying a different role for
MenuItem
component. This makes it possible to usemenuitemcheckbox
ormenuitemradio
. If you use one of these, please don't forget to add the attributearia-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
Breaking
- Use
KeyboardEvent.key
instead ofKeyboardEvent.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
Fix
- Fixes keyboard navigation when the menu rerenders.
Breaking
- Fixes the button filter by changing how it's implemented: instead of using
mouseButton={0}
, usetriggerOnLeftClick={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.