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 committed by GitHub
parent 8f422357f1
commit 22ddcca954
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;
}