mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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;
|
||||
}
|
||||
|
||||
if (e.defaultPrevented) {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
|
||||
showQuickBar(this, { commandMode });
|
||||
}
|
||||
|
||||
@ -75,6 +80,11 @@ export default <T extends Constructor<HassElement>>(superClass: T) =>
|
||||
return;
|
||||
}
|
||||
|
||||
if (e.defaultPrevented) {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
|
||||
const targetPath = mainWindow.location.pathname;
|
||||
const isHassio = isComponentLoaded(this.hass, "hassio");
|
||||
const myParams = new URLSearchParams();
|
||||
|
Loading…
x
Reference in New Issue
Block a user