Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
'Do you want to leave this site?' message appears when no edits have been made, when using certain fieldtypes #1559
In the CP there is a warning that pops up if you try to exit a page when you have edited something but haven't saved.
This is a great feature and has saved my bacon on several occasions - however there is an annoying facet to this function in that is seems to occur if you scroll on a page or focus on a field even if you haven't made an edit.
Personally I think only an edit on the page should cause the warning to occur, NOT scrolling or focusing on a field, otherwise it is really annoying.
I have had clients tell me this annoys them a lot, and it has annoyed me quite a bit whilst developing.
I can not reproduce the scrolling issue but I did reproduce a general problem that maybe related to this issue.
If you focus an empty text field the
Steps to reproduce