From 2418f046c7e1c966f585cfafa21ef31abfe0c1aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Fri, 17 Sep 2021 17:30:27 +0200 Subject: [PATCH] Update #41: Allow selecting option with spaces --- dist/plex-meets-homeassistant.js | 2 ++ src/editor.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 75f939c..795a564 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -19957,6 +19957,8 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement { const addDropdownItem = (text, disabled = false) => { const libraryItem = document.createElement('paper-item'); libraryItem.innerHTML = text.replace(/ /g, ' '); + libraryItem.label = text; + console.log('Test2'); if (disabled) { libraryItem.disabled = true; } diff --git a/src/editor.ts b/src/editor.ts index 66bb277..3c47b46 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -175,6 +175,8 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement { const addDropdownItem = (text: string, disabled = false): HTMLElement => { const libraryItem: any = document.createElement('paper-item'); libraryItem.innerHTML = text.replace(/ /g, ' '); + libraryItem.label = text; + console.log('Test2'); if (disabled) { libraryItem.disabled = true; }