"Are you sure you want to leave?" is asked even for search queries #3698
Labels
type/enhancement
An improvement of existing functionality
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Description
Gitea uses jquery.are-you-sure to help users not lose data when they have edited a form. This is currently done on every form, see here. On inputs such as search queries, popping up this dialog seems both annoying and may cause needless what-did-I-do-wrong stress.
Reproduce
Go to any page with a search bar. Type some letters in the search query. Navigate to another page (without searching). You'll get a prompt asking if you are really sure about leaving this page.
Possible solutions
Either:
class="ays-ignore"
areYouSure
only for forms of that class.Any preference for either solution?
The text was updated successfully, but these errors were encountered: