Skip to content

Commit

Permalink
Merge pull request #20 from mark-elementor/master
Browse files Browse the repository at this point in the history
jQuery.focus() is deprecated
  • Loading branch information
kobizz authored Dec 28, 2023
2 parents f5347fa + 79e082d commit f56d807
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/dialogs-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@
}
}

this.focusedButton = this.buttons[nextButtonIndex].focus();
this.focusedButton = this.buttons[nextButtonIndex].trigger('focus');
}
},
addButton: function(options) {
Expand Down Expand Up @@ -881,7 +881,7 @@
}

if (this.focusedButton) {
this.focusedButton.focus();
this.focusedButton.trigger('focus');
}
},
unbindHotKeys: function() {
Expand Down

0 comments on commit f56d807

Please sign in to comment.