diff --git a/packages/components/src/components/dropdown-select/dropdown-select.tsx b/packages/components/src/components/dropdown-select/dropdown-select.tsx index afe80c06ce..4ace53ebb2 100644 --- a/packages/components/src/components/dropdown-select/dropdown-select.tsx +++ b/packages/components/src/components/dropdown-select/dropdown-select.tsx @@ -327,6 +327,9 @@ export class DropdownSelect { } updateInputHidden(value: string = this.value): void { + if (!this.hiddenInput) { + return; + } this.hiddenInput.value = value; } diff --git a/packages/components/src/html/dropdown-select.html b/packages/components/src/html/dropdown-select.html index bbb0ebf20b..6a66117b48 100644 --- a/packages/components/src/html/dropdown-select.html +++ b/packages/components/src/html/dropdown-select.html @@ -23,7 +23,7 @@ -
+