Skip to content

Adding multiple relationships doesn't reset modal form and clears form events. #118

Closed

Description

@richardvanbergen

Bug Report

There's a couple of wonky behaviours around rich text relationships. I think they're related so I'm putting them as one issue.

It seems to be that if you add a relationship, select somewhere else, and add another relationship:

  1. The form is still populated with the previous values.
  2. The events that fetch the relationships are no longer bound to the select box.
  3. The "Add relationship" button submits the main form rather than inserting a new relationship inline.

It's hard to explain so I've included a screen recording.

screen.recording.mov

Steps to Reproduce

  1. enableRichTextRelationship on a couple of different modules.
  2. Try to insert a relationship, should be OK
  3. Try to insert another.
  4. See issues described above.

Activity

  1. jmikrut commented on Mar 31, 2021

    @jmikrut
    Member

    Hey @richardvanbergen — thank you for this. We have fixes applied to issues 1 and 2, but 3 we are still working on.

    Going to continue to chase it down. It has to do with an inner working of React concerning event bubbling out of Portals:

    react/react#11387

    react/react#19637

    Wild stuff. Will report back shortly as now that we have identified the issue, we will likely be able to implement a workaround and get all 3 issues fixed at once!

  2. richardvanbergen commented on Mar 31, 2021

    @richardvanbergen
    Author

    It's ok I understand how sometimes it can be weird esoteric interactions with the core framework. I've had plenty of those myself 😅

  3. jmikrut commented on Mar 31, 2021

    @jmikrut
    Member

    This has all been resolved in #120! Deploying 0.5.2 as we speak!

  4. github-actions commented on Sep 8, 2024

    @github-actions
    Contributor

    This issue has been automatically locked.
    Please open a new issue if this issue persists with any additional detail.

  5. locked as resolved and limited conversation to collaborators on Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions