Skip to content

Commit

Permalink
fix(island-ui): Only set SelectController placeholder for undefined o…
Browse files Browse the repository at this point in the history
…r null values (#16512)

* Fix: Only set placeholder for undefined or null

* conditional only for null

---------

Co-authored-by: hfhelgason <hfhelgason@deloitte.is>
  • Loading branch information
helgifr and hfhelgason authored Oct 22, 2024
1 parent 368b5fc commit cf03b8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const SelectController = <Value, IsMulti extends boolean = false>({
}

const getValue = (value: Value | Value[]) => {
if (!value) {
if (value === null) {
return null
}

Expand Down

0 comments on commit cf03b8c

Please sign in to comment.