Close thumbnail drawer when something is chosen.

This commit is contained in:
Dermot Duffy
2022-06-04 11:04:38 -07:00
parent e03f3cf7f8
commit 8b570c65a0
2 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -145,9 +145,9 @@ export class View {
/**
* Dispatch an event to request a view change.
* @param node The element dispatching the event.
* @param target The target dispatching the event.
*/
public dispatchChangeEvent(node: HTMLElement): void {
dispatchFrigateCardEvent(node, 'change-view', this);
public dispatchChangeEvent(target: EventTarget): void {
dispatchFrigateCardEvent(target, 'change-view', this);
}
}