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

master
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
1 changed files with 1 additions and 1 deletions

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');