Clicking close icon in expanded record in edit state - should not result in losing the changes made

Given I have expanded a record
And I have made changes to the record
When I click Close (x)
Then the edit form closes
And there is no warning that changes will be lost
And my changes are lost
But I expected to receive a warning or the ability to save and close

This is a known and reported issue under an unrelated topic, so I am creating it here because it is important enough to track separately. This issue impedes user adoption because the behavior is unexpected and losing user data without warning is a big no-no. Note that even in NocoDB the behavior is inconsistent: closing a dialog for editing a field saves changes, but closing the dialog for a record does not.

Solution 1: Treat Close (x) as Save and Close. Add a Discard Changes button if people want that.

Solution 2: Provide warning message if the dialog is closed with unsaved changes, and allow the user to save or discard changes.

Have reported an issue in our github. We will investigate and fix should be there tomorrow.

This issue is fixed now.