Don't access jQuery through `parent.parent` (#5943)
parent
5384edc7c9
commit
bc302538c0
|
@ -318,7 +318,7 @@ exports.padeditbar = new class {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Focus on the editbar :)
|
// Focus on the editbar :)
|
||||||
const firstEditbarElement = parent.parent.$('#editbar button').first();
|
const firstEditbarElement = $('#editbar button').first();
|
||||||
|
|
||||||
$(evt.currentTarget).trigger('blur');
|
$(evt.currentTarget).trigger('blur');
|
||||||
firstEditbarElement.trigger('focus');
|
firstEditbarElement.trigger('focus');
|
||||||
|
|
Loading…
Reference in New Issue