settings-api: fix deprecated keyup() function (#3424)

This commit is contained in:
yubiuser
2025-05-03 19:41:25 +02:00
committed by GitHub

View File

@@ -408,8 +408,8 @@ $("#password_code").on("mouseout blur", function () {
}); });
// Trigger keyup event when pasting into the TOTP code input field // Trigger keyup event when pasting into the TOTP code input field
$("#totp_code").on("paste", e => { $("#totp_code").on("paste", event => {
$(e.target).keyup(); $(event.target).trigger("keyup");
}); });
$("#totp_code").on("keyup", function () { $("#totp_code").on("keyup", function () {