mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 10:48:26 +00:00
settings-api: fix deprecated keyup() function
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -408,8 +408,8 @@ $("#password_code").on("mouseout blur", function () {
|
||||
});
|
||||
|
||||
// Trigger keyup event when pasting into the TOTP code input field
|
||||
$("#totp_code").on("paste", e => {
|
||||
$(e.target).keyup();
|
||||
$("#totp_code").on("paste", event => {
|
||||
$(event.target).trigger("keyup");
|
||||
});
|
||||
|
||||
$("#totp_code").on("keyup", function () {
|
||||
|
||||
Reference in New Issue
Block a user