mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Add stopPropagation to move click handlers (#10379)
This commit is contained in:
parent
0c038398aa
commit
d027ec0018
@ -713,7 +713,8 @@ class HUIRoot extends LitElement {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private _moveViewLeft() {
|
private _moveViewLeft(ev) {
|
||||||
|
ev.stopPropagation();
|
||||||
if (this._curView === 0) {
|
if (this._curView === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -724,7 +725,8 @@ class HUIRoot extends LitElement {
|
|||||||
lovelace.saveConfig(swapView(lovelace.config, oldIndex, newIndex));
|
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) {
|
if ((this._curView! as number) + 1 === this.lovelace!.config.views.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user