mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Prevent double quick action (#18842)
This commit is contained in:
parent
6a999597df
commit
a6ff1899df
@ -64,6 +64,11 @@ export default <T extends Constructor<HassElement>>(superClass: T) =>
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e.defaultPrevented) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
showQuickBar(this, { commandMode });
|
showQuickBar(this, { commandMode });
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,6 +80,11 @@ export default <T extends Constructor<HassElement>>(superClass: T) =>
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e.defaultPrevented) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
const targetPath = mainWindow.location.pathname;
|
const targetPath = mainWindow.location.pathname;
|
||||||
const isHassio = isComponentLoaded(this.hass, "hassio");
|
const isHassio = isComponentLoaded(this.hass, "hassio");
|
||||||
const myParams = new URLSearchParams();
|
const myParams = new URLSearchParams();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user