We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee52f8f commit 223cb59Copy full SHA for 223cb59
README.md
@@ -77,7 +77,9 @@ const SortableList = ({ items, onChange }) => {
77
78
// [Optional] The onChange method allows you to implement a controlled component and keep
79
// DOM nodes untouched. You have to change state to re-render the component.
80
- onChange={(order) => {
+ // @param {Array} order An ordered array of items, defined by the `data-id` attribute.
81
+ // @param {Object} sortable The sortable instance.
82
+ onChange={(order, sortable) => {
83
onChange(order);
84
}}
85
>
0 commit comments