Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated jQuery event shorthand #399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/featherlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@
$target.data('featherlight-persisted', fl);
}
if (elemConfig.$currentTarget.blur) {
elemConfig.$currentTarget.blur(); // Otherwise 'enter' key might trigger the dialog again
elemConfig.$currentTarget.trigger('blur'); // Otherwise 'enter' key might trigger the dialog again
}
fl.open(event);
};
Expand Down Expand Up @@ -648,7 +648,7 @@

afterContent: function(_super, event){
var r = _super(event);
this.$instance.find('[autofocus]:not([disabled])').focus();
this.$instance.find('[autofocus]:not([disabled])').trigger('focus');
this.onResize(event);
return r;
}
Expand Down