mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
pad_editbar: Fix invalid use of this
This commit is contained in:
parent
b884628a5a
commit
b2fe6e3e7e
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ const padeditbar = (() => {
|
||||||
// Focus on the editbar :)
|
// Focus on the editbar :)
|
||||||
const firstEditbarElement = parent.parent.$('#editbar button').first();
|
const firstEditbarElement = parent.parent.$('#editbar button').first();
|
||||||
|
|
||||||
$(this).blur();
|
$(evt.currentTarget).blur();
|
||||||
firstEditbarElement.focus();
|
firstEditbarElement.focus();
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue