Merge pull request #15481 from Budibase/fix/select-component-bug

Picker bug fix
This commit is contained in:
Peter Clement 2025-02-04 09:46:14 +00:00 committed by GitHub
commit 2f5e4f00da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -34,12 +34,12 @@
export let getOptionValue = (option: O, _index?: number) =>
option as unknown as V
export let getOptionIcon = (option: O, _index?: number) =>
option as unknown as O
export let useOptionIconImage = false
option?.icon ?? undefined
export let getOptionColour = (option: O, _index?: number) =>
option as unknown as O
option?.colour ?? undefined
export let getOptionSubtitle = (option: O, _index?: number) =>
option as unknown as O
option?.subtitle ?? undefined
export let useOptionIconImage = false
export let open: boolean = false
export let readonly: boolean = false
export let quiet: boolean = false

View File

@ -17,11 +17,11 @@
export let getOptionValue = (option: O, _index?: number) =>
option as unknown as V
export let getOptionIcon = (option: O, _index?: number) =>
option as unknown as string
option?.icon ?? undefined
export let getOptionColour = (option: O, _index?: number) =>
option as unknown as string
option?.colour ?? undefined
export let getOptionSubtitle = (option: O, _index?: number) =>
option as unknown as string
option?.subtitle ?? undefined
export let compare = (option: O, value: V) => option === value
export let useOptionIconImage = false
export let isOptionEnabled = (option: O, _index?: number) =>