From d86a8e554bb910a712478918c07fb72dfd541a2c Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 14 Aug 2023 14:12:51 +0300 Subject: [PATCH] fix addActionHandler --- client/src/view.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/view.js b/client/src/view.js index d88271eac9..ec001edcfa 100644 --- a/client/src/view.js +++ b/client/src/view.js @@ -80,7 +80,9 @@ class View extends BullView { addActionHandler(action, handler) { const fullAction = `click [data-action="${action}"]`; - this.events[fullAction] = e => handler(e.originalEvent, e.currentTarget); + this.events[fullAction] = e => { + handler.call(this, e.originalEvent, e.currentTarget); + }; } /**