From c20ed8d3685ab46dfcf88a7c7374c0c91f7a4602 Mon Sep 17 00:00:00 2001 From: tshimber Date: Mon, 28 Oct 2024 16:35:38 +0100 Subject: [PATCH] fix: hidden input in dropdown-select fixed --- .../src/components/dropdown-select/dropdown-select.tsx | 3 +++ packages/components/src/html/dropdown-select.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 @@ - +