Skip to content

Commit

Permalink
fix(drop-down): fixes hidden input in dropdown-select with null check (
Browse files Browse the repository at this point in the history
  • Loading branch information
tshimber authored Nov 12, 2024
1 parent 9a999fb commit 8a04a5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ export class DropdownSelect {
}

updateInputHidden(value: string = this.value): void {
if (!this.hiddenInput) {
return;
}
this.hiddenInput.value = value;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/html/dropdown-select.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</style>
</head>

<body data-mode="dark" style="height: 200vh; background: black">
<body style="height: 200vh">
<scale-dropdown-select
label="Favorite person"
id="person-select"
Expand Down

0 comments on commit 8a04a5e

Please sign in to comment.