save draft when input field loses focus