When you have a unpublished text input and you click on something that have to effect to “update” the page (Like the heart button) unpublished text will be cleared in the process of updating. For exemple, when you press the ❤ the page will reload to update the number of likes while removing all unsaved input (The reply box in this case).