Don't access jQuery through parent.parent (#5943)

This commit is contained in:
Denys Halenok 2023-09-22 20:53:24 +02:00 committed by GitHub
parent 5384edc7c9
commit bc302538c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -318,7 +318,7 @@ exports.padeditbar = new class {
}
} else {
// Focus on the editbar :)
const firstEditbarElement = parent.parent.$('#editbar button').first();
const firstEditbarElement = $('#editbar button').first();
$(evt.currentTarget).trigger('blur');
firstEditbarElement.trigger('focus');