Opening relation in form view causes unkillable window

Steps to reproduce:

  • Create a table view for an entity with relationships.
  • Create a form where the relationship is present as a value to fill out.
  • In the ‘+ New’ form dropdown selector, choose the form as default.
  • Show layout as Full.
  • Click on the ‘+ New’ button.
  • Start filling out the form. Choose a relation from existing records.
  • Click on the caret to view the relation.
  • When the pop-up appears prompting ‘Discard changes?’ click ‘Discard’ button.
  • The selected relationship should appear in a panel below the modal.
  • The form is now a zombie and cannot be killed. Only refreshing the page works.

How I think this should work: the relationship should open in a panel, and the form should not ask you to discard changes since it is not navigating away from the page.

This process would allow for users to check the related entity they picked before continuing with completing the form.