Skip to content

Commit

Permalink
jQuery.fn.focus() event shorthand is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
leemyongpakvn committed Jun 13, 2022
1 parent 5632e4a commit 729fd19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _dev/js/components/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export default class Form {
}

parentFocus() {
$('.js-child-focus').focus(function () {
$('.js-child-focus').on('focus', function () {
$(this).closest('.js-parent-focus').addClass('focus');
});
$('.js-child-focus').focusout(function () {
$('.js-child-focus').on('focusout', function () {
$(this).closest('.js-parent-focus').removeClass('focus');
});
}
Expand Down

0 comments on commit 729fd19

Please sign in to comment.