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
By default, rqb/dnd will not work with custom Rule and RuleGroup. To make it work, controlElements should be added to QueryBuilderDnD instead of QueryBuilder component, like this:
<QueryBuilderDnDcontrolElements={controlElements}><QueryBuilderquery={query}// ...// Don't put 'controlElements' here!/></QueryBuilderDnD>
I think it should be added into documentation, because it is not obvious and could not be figured out without debugging the library internals.
I can update the docs if this point makes sense.
The text was updated successfully, but these errors were encountered:
Yeah, that's a good point. The docs probably need a dedicated DnD page anyway, but if you'd like to amend the current docs please feel free to submit a PR. Docs are in the /website/docs folder, and since this still applies to v5, also update /website/versioned_docs/version-5.
By default, rqb/dnd will not work with custom Rule and RuleGroup. To make it work,
controlElements
should be added toQueryBuilderDnD
instead ofQueryBuilder
component, like this:I think it should be added into documentation, because it is not obvious and could not be figured out without debugging the library internals.
I can update the docs if this point makes sense.
The text was updated successfully, but these errors were encountered: