Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FieldCascader cannot select #1121

Open
TaXueWuH opened this issue Oct 16, 2024 · 3 comments
Open

FieldCascader cannot select #1121

TaXueWuH opened this issue Oct 16, 2024 · 3 comments

Comments

@TaXueWuH
Copy link

TaXueWuH commented Oct 16, 2024

Describe the bug
Starting from 6.6.0 of @ react awesome query builder/antd, using FieldCascader in renderField in settings and setting "! Struct" in type in field can cause the problem of not being able to select

To Reproduce
In the demo provided by your project, remove the annotation for renderField. It can be seen that when switching to other options, the sub items under 'User' cannot be selected

Expected behavior
The 6.5.2 version I am currently using can be used, and FieldCascade is optional. If you want to upgrade to the new version 6.6.0 or above, this option also works. I don't know if this is a bug

Screenshots
44a3037a41c950ca7a5e21f95c42dc45

@TaXueWuH
Copy link
Author

TaXueWuH commented Oct 21, 2024

@ukrbublik I have discovered a bug regarding the setting of type in a field. When the type in the field is set to "! Struct", the extendFieldConfig method in configExtended.js will result in disabled being true, causing FieldCascaders with type "! Struct" in the field to not be selected. This bug started from 6.6.0. Please verify and fix it https://github.com/ukrbublik/react-awesome-query-builder/blob/0208140b066dadb5318c32e5c9c7e6f249539abf/packages/core/modules/utils/configExtend.js#L207C2-L229C4
921a43f104e7d39fa5179fb89451caa5

@bzenker-amplify
Copy link

I am seeing this issue as well, but even more simply, I cannot use any config of type !struct

@bzenker-amplify
Copy link

My apologies, I was able to understand my issue better by reproducing it via the Demo. The Vanilla renderer does not allow selecting any !struct fields. You can see this by going to the Demo, and changing renderer to Vanilla. If you think this is a different issue, let me know and I'll open a new ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants