When deleting something, we should cancel the editing.