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 ```