This was tested on Safari 15.2 and macOS 12.1 (Monterey) on a M1 Max MacBook Pro; as per this question, other browsers and even mobile browsers seem affected, too.
When I try to edit an answer I've given and I'm done editing, I click the blue "Save edits" button below my answer, as per usual.
Doing so gives me a "You have started editing this post. Abandon this edit?" dialog. If I click OK my edits are saved. If I click cancel my answer seems to be completely empty, but after reloading the page it's back.
Please note that this behaviour does not occur if I haven't actually made any changes.
This is highly irritating. What's going on?
Even when I was trying to ask this question, after clicking on Review your question and doing so I went on to Ask question, and it gave me this "Do you really want to leave the page?" dialog:
The question if I want to abandon the edit also occurs on editing this question, not only on editing answers:
If in that "Abandon edits?" dialog I chose Cancel, the resulting page I get looks like this: