This is a duplicate of #878 from back in April, 7 months ago. (This problem really needs fixing! Unexpectedly losing something that you typed out SUCKS. I still do it and I've been using Mastodon since April!)