From b2fe6e3e7e8a60e058f322b5b197baa103814265 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 15 Jul 2021 17:07:44 -0400 Subject: [PATCH] pad_editbar: Fix invalid use of `this` --- src/static/js/pad_editbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js index 856f96275..ff5fd659c 100644 --- a/src/static/js/pad_editbar.js +++ b/src/static/js/pad_editbar.js @@ -324,7 +324,7 @@ const padeditbar = (() => { // Focus on the editbar :) const firstEditbarElement = parent.parent.$('#editbar button').first(); - $(this).blur(); + $(evt.currentTarget).blur(); firstEditbarElement.focus(); evt.preventDefault(); }