Skip to content

Commit bc30253

Browse files
authored
Don't access jQuery through parent.parent (#5943)
1 parent 5384edc commit bc30253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/static/js/pad_editbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ exports.padeditbar = new class {
318318
}
319319
} else {
320320
// Focus on the editbar :)
321-
const firstEditbarElement = parent.parent.$('#editbar button').first();
321+
const firstEditbarElement = $('#editbar button').first();
322322

323323
$(evt.currentTarget).trigger('blur');
324324
firstEditbarElement.trigger('focus');

0 commit comments

Comments
 (0)