Don't trigger card-wide actions on card controls
This commit is contained in:
@@ -583,3 +583,10 @@ export const frigateCardHasAction = (
|
||||
}
|
||||
return hasAction(config);
|
||||
};
|
||||
|
||||
/**
|
||||
* Stop an event from activating card wide actions.
|
||||
*/
|
||||
export const stopEventFromActivatingCardWideActions = (ev: Event): void => {
|
||||
ev.stopPropagation();
|
||||
}
|
||||
Reference in New Issue
Block a user