mirror of
https://github.com/espocrm/espocrm.git
synced 2026-07-01 00:16:07 +00:00
fix addActionHandler
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user