@@ -157,10 +157,10 @@ export const useAsDropTarget = () => {
157157
158158 if ( dropTarget !== currentDropTarget ) {
159159 if ( dropTarget ) {
160- console . log (
161- `%c[useAsDropTarget] onDragEnter set current dropTarget = ${ dropTarget . gridLayoutItemId } ` ,
162- "color:green;font-weight:bold;" ,
163- ) ;
160+ // console.log(
161+ // `%c[useAsDropTarget] onDragEnter set current dropTarget = ${dropTarget.gridLayoutItemId}`,
162+ // "color:green;font-weight:bold;",
163+ // );
164164
165165 dropTargetStateRef . current . dropTarget = dropTarget ;
166166 const { rect } = dropTargetStateRef . current ;
@@ -172,10 +172,10 @@ export const useAsDropTarget = () => {
172172 rect . top = top ;
173173 } else if ( currentDropTarget ) {
174174 dropTargetStateRef . current . dropTarget = undefined ;
175- console . log (
176- `%c[useAsDropTarget] clear droptarget ${ currentDropTarget ?. gridLayoutItemId } ` ,
177- "color:brown;font-weight: bold;" ,
178- ) ;
175+ // console.log(
176+ // `%c[useAsDropTarget] clear droptarget ${currentDropTarget?.gridLayoutItemId}`,
177+ // "color:brown;font-weight: bold;",
178+ // );
179179 removeDropTargetPositionClassName ( currentDropTarget ?. target ) ;
180180 }
181181 }
@@ -259,7 +259,7 @@ export const useAsDropTarget = () => {
259259 const { dropTarget : currentDropTarget } = dropTargetStateRef . current ;
260260 const { dragSource } = dragContext ;
261261 if ( dragSource && currentDropTarget ) {
262- console . log ( `[useAsDropTarget#${ layoutId } ] onDrop` , { dragSource } ) ;
262+ // console.log(`[useAsDropTarget#${layoutId}] onDrop`, { dragSource });
263263
264264 const dropTarget = getDropTarget ( evt . target , currentDropTarget ) ;
265265 if ( dropTarget && dropTargetStateRef . current . position ) {
@@ -281,7 +281,7 @@ export const useAsDropTarget = () => {
281281 dropTargetStateRef . current . dropTarget = undefined ;
282282 dropTargetStateRef . current . position = undefined ;
283283 } ,
284- [ dragContext , drop , layoutId ] ,
284+ [ dragContext , drop ] ,
285285 ) ;
286286
287287 return {
0 commit comments