Skip to content

Update EditorComponentField to allow list widgets #6891

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

Merged

Conversation

leo-petrucci
Copy link
Contributor

Summary

The CMS.registerEditorComponent function currently accepts widget: "list" as a field. List is a special widget that allows field or fields to be further defined to create arrays.

For some reason, despite working correctly, the types don't seem to reflect this

Screenshot 2023-08-28 at 09 15 01 Screenshot 2023-08-28 at 09 15 20

This PR adds the correct types to the function.

Test plan

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged)

@martinjagodic martinjagodic requested a review from demshy August 29, 2023 14:03
@martinjagodic martinjagodic enabled auto-merge (squash) August 30, 2023 08:43
@martinjagodic martinjagodic disabled auto-merge August 31, 2023 09:46
@martinjagodic martinjagodic enabled auto-merge (squash) August 31, 2023 09:46
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

Successfully merging this pull request may close these issues.

3 participants