There was an error while loading. Please reload this page.
1 parent f289705 commit c177160Copy full SHA for c177160
1 file changed
ui/pages/home/index.tsx
@@ -140,6 +140,10 @@ const Home: React.FC = () => {
140
}
141
};
142
143
+ const handleDragCancel = () => {
144
+ setActiveId(null);
145
+ };
146
+
147
// If no cards are registered, fall back to the original Welcome page
148
if (registrations.length === 0) {
149
return <Welcome />;
@@ -201,6 +205,7 @@ const Home: React.FC = () => {
201
205
collisionDetection={closestCenter}
202
206
onDragStart={handleDragStart}
203
207
onDragEnd={handleDragEnd}
208
+ onDragCancel={handleDragCancel}
204
209
>
210
<SortableContext items={idsToRender} strategy={rectSortingStrategy}>
211
<Grid container spacing={2} alignItems="stretch">
0 commit comments