Fix error in console when taking control of the strategy (#20329)

This commit is contained in:
Paul Bottein 2024-04-02 18:33:30 +02:00 committed by GitHub
parent 33c7e0fa2d
commit 56d328b4db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -172,12 +172,14 @@ class DialogDashboardStrategyEditor extends LitElement {
`;
}
private _takeControl() {
private _takeControl(ev) {
ev.stopPropagation();
this._params!.takeControl();
this.closeDialog();
}
private _showRawConfigEditor() {
private _showRawConfigEditor(ev) {
ev.stopPropagation();
this._params!.showRawConfigEditor();
this.closeDialog();
}