Cancel button not working when I open record in a new window for editing

Cancel button not working when I open record in a new window for editing

I've created a field that displays a link in my view allowing users to open the form in a new window for editing (to avoid the popup/floating window, which creates problems for us in certain situations).

The problem is, the "Cancel" button no longer works in this window. "Update" works fine, and the user can close the window to avoid updating, but I'm afraid that if the cancel button doesn't work, they will feel forced to click "update", which could lead to data loss or input errors.

Is this a bug or can I fix this?