Skip to content

Commit

Permalink
Merge pull request #215 from clauderic/changeset-release/master
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
clauderic authored Apr 20, 2021
2 parents fe87fed + d614226 commit 0b14c6f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 0 additions & 7 deletions .changeset/use-sortable-data.md

This file was deleted.

8 changes: 8 additions & 0 deletions packages/sortable/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @dnd-kit/sortable

## 3.0.1

### Patch Changes

- [`a178857`](https://github.com/clauderic/dnd-kit/commit/a1788579ee12d1c1af8244bdf6a17f3f5ba388a1) [#214](https://github.com/clauderic/dnd-kit/pull/214) Thanks [@clauderic](https://github.com/clauderic)! - Ensure that consumer defined data passed to `useSortable` is passed down to both `useDraggable` and `useDroppable`.

The `data` object that is passed to `useDraggable` and `useDroppable` within `useSortable` also contains the `sortable` property, which holds a reference to the index of the item, along with the `containerId` and the `items` of its parent `SortableContext`.

## 3.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sortable/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dnd-kit/sortable",
"version": "3.0.0",
"version": "3.0.1",
"description": "Official sortable preset and sensors for dnd kit",
"author": "Claudéric Demers",
"license": "MIT",
Expand Down

0 comments on commit 0b14c6f

Please sign in to comment.