Fix card-wide actions.

This commit is contained in:
Dermot Duffy
2024-04-07 21:18:55 -07:00
parent 43406b21e6
commit 9c9548afc8
3 changed files with 52 additions and 10 deletions
+10 -2
View File
@@ -77,7 +77,11 @@ export class CardElementManager {
this._api.getActionsManager().handleActionEvent,
);
this._element.addEventListener(
'@action',
'action',
this._api.getActionsManager().handleInteractionEvent,
);
this._element.addEventListener(
'action',
this._api.getInteractionManager().reportInteraction,
);
@@ -123,7 +127,11 @@ export class CardElementManager {
this._api.getActionsManager().handleActionEvent,
);
this._element.removeEventListener(
'@action',
'action',
this._api.getActionsManager().handleInteractionEvent,
);
this._element.removeEventListener(
'action',
this._api.getInteractionManager().reportInteraction,
);