Skip to content

Commit

Permalink
fix the Sortable > Customization demo
Browse files Browse the repository at this point in the history
  • Loading branch information
VasilyStrelyaev committed Jan 18, 2024
1 parent e684e68 commit 12086ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion JSDemos/Demos/Sortable/Customization/React/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const App = () => {
}, [setHandle]);

const onDragTemplateChanged = useCallback((e: CheckBoxTypes.ValueChangedEvent) => {
setDragComponent(e.value ? DragItem : null);
setDragComponent(e.value ? () => DragItem : null);
setCursorOffset(e.value ? { x: 10, y: 20 } : null);
}, [setDragComponent, setCursorOffset]);

Expand Down
2 changes: 1 addition & 1 deletion JSDemos/Demos/Sortable/Customization/ReactJs/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const App = () => {
);
const onDragTemplateChanged = useCallback(
(e) => {
setDragComponent(e.value ? DragItem : null);
setDragComponent(e.value ? () => DragItem : null);
setCursorOffset(e.value ? { x: 10, y: 20 } : null);
},
[setDragComponent, setCursorOffset],
Expand Down

0 comments on commit 12086ee

Please sign in to comment.