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
I tried to create a querybuilder with drag and drop using react-querybuilder/dnd. I saw the canDrop callback in docs to limit where rules/groups can be dropped. The callback works normally but when I tried to make it always return false in a querybuilder with showCombinatorsBetweenRules enabled, the drag and drop function seems to ignore the callback completely and I can still freely drop elements anywhere
React Query Builder version
v7.2.0
Platform
Microsoft Edge on Windows 11
Description
I tried to create a querybuilder with drag and drop using
react-querybuilder/dnd
. I saw thecanDrop
callback in docs to limit where rules/groups can be dropped. The callback works normally but when I tried to make it always returnfalse
in a querybuilder withshowCombinatorsBetweenRules
enabled, the drag and drop function seems to ignore the callback completely and I can still freely drop elements anywhereReproduction
https://codesandbox.io/p/sandbox/xenodochial-brook-37c84t
Expected behavior
Rules/groups cannot be dropped when
canDrop
always returnfalse
in a querybuilder withshowCombinatorsBetweenRules
enabledAdditional information
No response
The text was updated successfully, but these errors were encountered: