diff --git a/src/panels/config/automation/action/ha-automation-action-row.ts b/src/panels/config/automation/action/ha-automation-action-row.ts index 96719a003f..05fdbe4cf3 100644 --- a/src/panels/config/automation/action/ha-automation-action-row.ts +++ b/src/panels/config/automation/action/ha-automation-action-row.ts @@ -252,6 +252,9 @@ export default class HaAutomationActionRow extends LitElement { } private _handleUiModeNotAvailable(ev: CustomEvent) { + // Prevent possible parent action-row from switching to yamlMode + ev.stopPropagation(); + this._warnings = handleStructError(this.hass, ev.detail).warnings; if (!this._yamlMode) { this._yamlMode = true; diff --git a/src/panels/config/automation/action/ha-automation-action.ts b/src/panels/config/automation/action/ha-automation-action.ts index dfdf25b215..a51749e902 100644 --- a/src/panels/config/automation/action/ha-automation-action.ts +++ b/src/panels/config/automation/action/ha-automation-action.ts @@ -53,6 +53,9 @@ export default class HaAutomationAction extends LitElement { } private _move(ev: CustomEvent) { + // Prevent possible parent action-row from also moving + ev.stopPropagation(); + const index = (ev.target as any).index; const newIndex = ev.detail.direction === "up" ? index - 1 : index + 1; const actions = this.actions.concat();