I click a button called "Login" and a popup appears to login. I fill in my information and I accidentally click outside the div, should the information be remembered when I click "Login" again? Or, do users not do this and want the information to clear on the click of "Login"?
For example, on Udemy, if you click on "Login", the input fields are cleared.
However, on Twitter, if you click "Log In", the information is saved in the input fields.
From a UX and user point of view, which of these points make more sense?