From 8f53231d2584fa677842d1321ce8b5ba728619c5 Mon Sep 17 00:00:00 2001 From: Zack Barett Date: Tue, 8 Dec 2020 04:55:04 -0600 Subject: [PATCH] Very Small updated after using the Custom Views (#748) --- docs/frontend/custom-ui/lovelace-custom-view.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/frontend/custom-ui/lovelace-custom-view.md b/docs/frontend/custom-ui/lovelace-custom-view.md index e284d8c6..adabfe72 100644 --- a/docs/frontend/custom-ui/lovelace-custom-view.md +++ b/docs/frontend/custom-ui/lovelace-custom-view.md @@ -93,5 +93,5 @@ To call an event, you can use: ```js // Delete 4th card in the current view -this.dispatchEvent(new Event("ll-edit-card", { detail: { path: [3] } })) // this refers to the card element +this.dispatchEvent(new CustomEvent("ll-edit-card", { detail: { path: [3] } })) // this refers to the card element ```