From 79e082d0695ea86df55c41dfd090bba3b2640373 Mon Sep 17 00:00:00 2001 From: Mark Tyrin Date: Thu, 28 Dec 2023 10:15:45 +0200 Subject: [PATCH] jQuery.focus() is deprecated --- src/js/dialogs-manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/dialogs-manager.js b/src/js/dialogs-manager.js index dd9ff25..86d43fe 100644 --- a/src/js/dialogs-manager.js +++ b/src/js/dialogs-manager.js @@ -785,7 +785,7 @@ } } - this.focusedButton = this.buttons[nextButtonIndex].focus(); + this.focusedButton = this.buttons[nextButtonIndex].trigger('focus'); } }, addButton: function(options) { @@ -881,7 +881,7 @@ } if (this.focusedButton) { - this.focusedButton.focus(); + this.focusedButton.trigger('focus'); } }, unbindHotKeys: function() {