That is called draft which is a feature that automatically saves your QA text before posting. There is an option which discard the drafted questioncalled discard provided to manually clear saved draft.
An image for reference:
As you can see "Discard" option beside "Post your question" button. It works as cancelling only.