Update #41: Allow selecting option with spaces

realtime_play_button
Juraj Nyíri 3 years ago
parent b556ea2b8c
commit 2418f046c7

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

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

Loading…
Cancel
Save