Delete draft when escape is pressed with completely empty topic

Aha Alice, I was getting a bit confused here cause we have quite thorough checks that ensure we never save drafts unless a minimal amount of letters are typed.

Turns out the issue here is less about drafts, it is more about our logic for minimizing the composer. The composer was “thinking” incorrectly that the title changed when, in fact, it did not.

I fixed this here:

https://github.com/discourse/discourse/commit/44712c5f9825eca6cb38ed5351f5fa33fc8d107e

Please update to latest and let me know how it feels. It should be live on meta in the next half hour or so.

10 Likes