Skip to content

Commit

Permalink
fix: not able to close predefined group editor
Browse files Browse the repository at this point in the history
  • Loading branch information
punxaphil committed Feb 7, 2024
1 parent 5d76baf commit 0b38887
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/editor/base-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { css, LitElement } from 'lit';
import { fireEvent, HomeAssistant } from 'custom-card-helpers';
import { property } from 'lit/decorators.js';
import { CardConfig } from '../types';
import { dispatch } from '../utils/utils';

export abstract class BaseEditor extends LitElement {
@property({ attribute: false }) config!: CardConfig;
Expand Down Expand Up @@ -33,6 +32,6 @@ export abstract class BaseEditor extends LitElement {
this.requestUpdate();
}
protected dispatchClose() {
return dispatch('closed');
return this.dispatchEvent(new CustomEvent('closed'));
}
}

0 comments on commit 0b38887

Please sign in to comment.