1
0
Fork 0
mirror of synced 2024-08-17 19:11:52 +12:00

Allow to use select with radio buttons for boolean field type

This commit is contained in:
Kacper 2022-05-09 13:44:10 +02:00
parent 1cc60bd404
commit 45522f456e

View file

@ -40,6 +40,15 @@ export const getOptions = (
// Extract custom options
if (optionsSource === "custom" && customOptions) {
customOptions.forEach(option => {
if (typeof option.value === "string") {
if (option.value.toLowerCase() === "true") {
option.value = true
} else if (option.value.toLowerCase() === "false") {
option.value = false
}
}
})
return customOptions
}