Releases: discord/react-dnd-accessible-backend
Releases · discord/react-dnd-accessible-backend
v2.1.0 - Return focus to dragged elements when the drag ends
What's Changed
- Return focus to drag item on dragEnd() by @kendallgassner in #16
New Contributors
- @kendallgassner made their first contribution in #16
Full Changelog: v2.0.0...v2.1.0
v2.0.0 - Modernization + fixes
This release modernizes the repository to better work with modern environments. See #13 for more details.
Additionally, and the reason for the major version, this adds:
- Using
react-aria/live-announcerfor screenreader announcements by default. This can be tuned usingoptions.announcerif you have a different announcer in your application already. See #10 for more details. - Option for disabling previews (#12). In case you render previews yourself, you can now disable the automatic previews generated by the KeyboardBackend here.
- Relaxed
peerDependenciesto work with new versions of React (18+) (#11, #8). - Support
monitor.isDragging()so consumers can show dragging states (#9).
v1.0.1 - Drag trigger overrides
This update enables consumers to override the drag trigger condition by providing an alternate function. This lets consumers change the keybind used to start drag operations, and also check other conditions before allowing a trigger to continue through.