mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 17:56:46 +00:00
Fix pasting yaml in automation code editor (#25309)
Fix pasting yaml in code editor
This commit is contained in:
parent
3121721ac7
commit
5cd68301ed
@ -1,5 +1,11 @@
|
|||||||
export const canOverrideAlphanumericInput = (composedPath: EventTarget[]) => {
|
export const canOverrideAlphanumericInput = (composedPath: EventTarget[]) => {
|
||||||
if (composedPath.some((el) => "tagName" in el && el.tagName === "HA-MENU")) {
|
if (
|
||||||
|
composedPath.some(
|
||||||
|
(el) =>
|
||||||
|
"tagName" in el &&
|
||||||
|
(el.tagName === "HA-MENU" || el.tagName === "HA-CODE-EDITOR")
|
||||||
|
)
|
||||||
|
) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user