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

Adds itemValue prop for custom field view components to allow value-driven field conditions #8619

Merged
merged 8 commits into from Jul 31, 2023

Conversation

jim-lake
Copy link
Contributor

@jim-lake jim-lake commented Jun 8, 2023

Allows custom field views to access entire item in the editor so you can do cross field dependancies, visibility, etc.

@changeset-bot

This comment was marked as resolved.

@dcousens dcousens self-assigned this Jun 9, 2023
@dcousens dcousens changed the title hand entire item value to each field so we can do fancy dependancies Pass item value to rendered fields so we can create conditional fields Jun 14, 2023
@dcousens dcousens changed the title Pass item value to rendered fields so we can create conditional fields Adds itemValue prop for custom field view components to allow value-driven field conditions Jul 31, 2023
@dcousens
Copy link
Member

Thanks @jim-lake for the foundational work on this, we have added a changeset and an example to ensure the functionality is working. A type was missing which has been added too. 💛

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 31, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit a33af2d:

Sandbox Source
@keystone-6/sandbox Configuration

@jim-lake
Copy link
Contributor Author

Thanks, makes my life easier to not have to maintain a fork. ;)

@dcousens dcousens merged commit 6a8f1dd into keystonejs:main Jul 31, 2023
58 checks passed
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.

None yet

2 participants