We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8f7c32 commit aeb4bb0Copy full SHA for aeb4bb0
js_src/components/DropdownComponent.js
@@ -35,8 +35,9 @@ export class DropdownComponent extends BaseComponent {
35
36
const availableChoices = this.#getAvailableChoices();
37
38
- for (const optionLabel of availableChoices) {
+ for (let optionLabel of availableChoices) {
39
const option = document.createElement('option');
40
+ optionLabel = String(optionLabel);
41
option.value = optionLabel;
42
option.innerText = optionLabel;
43
option.selected = select.multiple ? (this.myState.value && this.myState.value.has(optionLabel)) : (this.myState.value && this.myState.value === optionLabel);
0 commit comments