Android Chrome e-mail share paste password problem

Hello,

When I share a file by e-mail with password, the recipient gets 2 e-mails. One e-mail with a link and one e-mail with a password. When the recipient click the link he has to fill in a password. Most of my recipients are using Android with the Chrome browser. They paste the password from the second e-mail. If they click in the password field the on-screen keyboard appears. Then they paste. After that they click the submit button but then nothing happens. First the have too remove the on-screen keyboard (click in empty space) or click in the password input field. For some of the people this is too difficult.

Does someone know what is going wrong and how to fix it?

Raspbian GNU/Linux 10 (buster) and Debian 10.10.
Nextcloud 21.0.3
Android 10 and 11

login

Solved.

Installed:

Inserted:

var input = document.querySelector('#password');
input.addEventListener('paste', function() {
    setTimeout(function() {
        document.getElementById("password").blur();
        document.getElementById("password-submit").focus();
    });
});

Domain:

cloud.example.com