Skip to content

Commit 94db478

Browse files
authored
Update link to shouldCancelStart function definition
1 parent c9d4ac3 commit 94db478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ There are already a number of great Drag & Drop libraries out there (for instanc
102102
| pressDelay | Number | `0` | If you'd like elements to only become sortable after being pressed for a certain time, change this property. A good sensible default value for mobile is `200`. Cannot be used in conjunction with the `distance` prop. |
103103
| pressThreshold | Number | `5` | Number of pixels of movement to tolerate before ignoring a press event. |
104104
| distance | Number | `0` | If you'd like elements to only become sortable after being dragged a certain number of pixels. Cannot be used in conjunction with the `pressDelay` prop. |
105-
| shouldCancelStart | Function | [Function](https://github.com/clauderic/react-sortable-hoc/blob/master/src/SortableContainer/index.js#L34) | This function get's invoked before sorting begins, and can be used to programatically cancel sorting before it begins. By default, it will cancel sorting if the event target is either an `input`, `textarea`, `select` or `option`. |
105+
| shouldCancelStart | Function | [Function](https://github.com/clauderic/react-sortable-hoc/blob/master/src/SortableContainer/index.js#L48) | This function get's invoked before sorting begins, and can be used to programatically cancel sorting before it begins. By default, it will cancel sorting if the event target is either an `input`, `textarea`, `select` or `option`. |
106106
| onSortStart | Function | | Callback that get's invoked when sorting begins. `function({node, index, collection}, event)` |
107107
| onSortMove | Function | | Callback that get's invoked during sorting as the cursor moves. `function(event)` |
108108
| onSortEnd | Function | | Callback that get's invoked when sorting ends. `function({oldIndex, newIndex, collection}, e)` |

0 commit comments

Comments
 (0)