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

feat: add closeOnSave Admin option to Relationship & Join fields #11646

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

slavanossar
Copy link
Contributor

@slavanossar slavanossar commented Mar 12, 2025

This PR adds a closeOnSave Admin option to both the Relationship and Join fields, as discussed in #9119.

Completed Tasks

  • Updated field types
  • Specified default closeOnSave values in each field component
  • Added closeOnSave props to both drawers, and conditional logic to toggle the drawers
  • Updated the docs
  • Added tests

Note that in order to preserve the original behaviour of each field, the default closeOnSave values are currently different for both:

  • Relationship: defaults to false
  • Join: defaults to true

Maybe it's worth aligning these so they both default to false – thoughts?

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

Successfully merging this pull request may close these issues.

1 participant