Skip to content

Conversation

Madeorsk
Copy link
Contributor

Problem

EditInDialogButton examples incorrectly specify a record in the SimpleForm.

Solution

Remove the record prop in these examples as it is only intended in a CreateInDialogButton.

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
  • [ ] The PR includes unit tests (if not possible, describe why)
  • [ ] The PR includes one or several stories (if not possible, describe why)
  • The documentation is up to date

@Madeorsk Madeorsk added the RFR Ready For Review label Sep 17, 2025
@Madeorsk Madeorsk changed the title Fix incorrect documentation for EditInDialogButton Fix incorrect documentation of EditInDialogButton Sep 17, 2025
@Madeorsk Madeorsk force-pushed the fix-edit-in-dialog-docs branch from b07941b to e7a94b9 Compare September 17, 2025 09:01
@Madeorsk Madeorsk added WIP Work In Progress and removed RFR Ready For Review labels Sep 17, 2025
fullWidth
maxWidth="md"
record={{ employer_id: record?.id }} // pre-populates the employer_id to link the new customer to the current employer
record={record}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this won't work, record is the current Employer, not the Customer

@Madeorsk Madeorsk added WIP Work In Progress and removed RFR Ready For Review labels Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work In Progress
Development

Successfully merging this pull request may close these issues.

2 participants