From d027ec0018dfc4dfe2d72ec3b5f8b57cd7a929b7 Mon Sep 17 00:00:00 2001 From: Nathan Orick Date: Mon, 25 Oct 2021 11:08:30 -0400 Subject: [PATCH] Add stopPropagation to move click handlers (#10379) --- src/panels/lovelace/hui-root.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 833938d199..61445901d7 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -713,7 +713,8 @@ class HUIRoot extends LitElement { }); } - private _moveViewLeft() { + private _moveViewLeft(ev) { + ev.stopPropagation(); if (this._curView === 0) { return; } @@ -724,7 +725,8 @@ class HUIRoot extends LitElement { lovelace.saveConfig(swapView(lovelace.config, oldIndex, newIndex)); } - private _moveViewRight() { + private _moveViewRight(ev) { + ev.stopPropagation(); if ((this._curView! as number) + 1 === this.lovelace!.config.views.length) { return; }