8000 [component] rearrange and add a few more strings · codemic-pl/react-sortablejs@4d0abaa · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 4d0abaa

Browse files
author
Wayne Van Son
committed
[component] rearrange and add a few more strings
1 parent 41c35b7 commit 4d0abaa

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/react-sortable.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,21 @@ Please read the updated README.md at https://github.com/SortableJS/react-sortabl
145145
makeOptions(): Options {
146146
const DOMHandlers: HandledMethodNames[] = [
147147
"onAdd",
148-
"onUpdate",
149-
"onRemove",
150-
"onStart",
148+
"onChoose",
149+
"onDeselect",
151150
"onEnd",
151+
"onRemove",
152+
"onSelect",
152153
"onSpill",
154+
"onStart",
153155
"onUnchoose",
154-
"onChoose"
156+
"onUpdate"
155157
];
156158
const NonDOMHandlers: UnHandledMethodNames[] = [
159+
"onChange",
157160
"onClone",
158161
"onFilter",
159-
"onSort",
160-
"onChange"
162+
"onSort"
161163
];
162164
const newOptions: Options = destructurePropsForOptions(this.props);
163165
DOMHandlers.forEach(

0 commit comments

Comments
 (0)
0