Save changes to secure note when swiping back/left

When changes are made to a secure note and the user swipes to the left, all changes to the note are lost. Perhaps it would be better to add a ‘Cancel’ button if a user didn’t want to save any changes made and make the swipe action automatically save changes.

Having used other notes apps, I have to always remind myself of this quirk when editing a secure note.

I just took a look at Proton Pass particularly the notes feature and they have it so that a popup (‘Discard changes?’) appears if you swipe back after making changes.