Fix pasting yaml in automation code editor (#25309)

Fix pasting yaml in code editor
This commit is contained in:
Paul Bottein 2025-05-05 11:42:21 +02:00
parent 3121721ac7
commit 5cd68301ed
No known key found for this signature in database

View File

@ -1,5 +1,11 @@
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;
}