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

Dropdown Optgroup causes an issue with CraftQL querying #332

Open
simeon-smith opened this issue Mar 20, 2020 · 2 comments
Open

Dropdown Optgroup causes an issue with CraftQL querying #332

simeon-smith opened this issue Mar 20, 2020 · 2 comments

Comments

@simeon-smith
Copy link

simeon-smith commented Mar 20, 2020

Opened an issue with Super Table as well.

verbb/super-table#349

Description

When you have a field that follows this structure:

Matrix Block > Super Table > Dropdown

Or with this structure:

Super Table > Dropdown

And you have an Optgroup in the dropdown it doesn't generate the correct GraphQL Schema for CraftQL. It appears to work fine for native GraphQL.

Steps to reproduce

  1. Make sure you have CraftQL.
  2. Create a Super Table field.
  3. Give it a Dropdown subfield
  4. Check optgroup for one of the options.
  5. Assign the field to a section.
  6. Go to the CraftQL explorer by clicking on CraftQL on the left menu.
  7. Search for the field handle.
  8. It should not show up.
  9. If you add another field to the Super Table field it should then show up with that other field as an option but not the Dropdown.
  10. If you remove the optgroup then it will show up.

Additional info

  • SuperTable version: 2.4.6
  • Craft version: 3.4.10.1
  • CraftQL version: 1.3.4
@odelonmiranda
Copy link

Experiencing the same issue, hope there will be a solution soon.

@brynldrn
Copy link

Also experiencing the same issue. Two scenarios actually:

  1. Matrix > Super Table > Dropdown
  2. Matrix (20+ blocks) > Dropdown

Hoping to have a solution soon.

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

No branches or pull requests

3 participants