Auto-save item when generating a password through the web interface and desktop app

And here: Unsaved changes are lost when move to another item

Easiest solution that even avoids similar issues if your computer freezes, reboots or shuts down or the website times out or has other issues:
First create the login credentials or make the changes within Bitwarden, then create the login or change the password in the app or on the website: