You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the docs, it seems like you're supposed to be setting it manually, e.g.:
functionhandleDragOver(state: DragDropState<Item>){const{ draggedItem }=state;// Prevent dropping if item doesn't meet criteriaif(!isValidItem(draggedItem)){// Optionally, add a class to indicate invalid drop targetdndState.invalidDrop=true;}else{dndState.invalidDrop=false;}}
Of course, setting arbitrary properties on the global state object isn't ideal or type-safe, but seems like it should work.
I need to do some conditional checking, but i see that invalidDrop does not exist on the dndState, neither anywhere in the codebase.
Am I missing something?
The text was updated successfully, but these errors were encountered: