Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd085a4

Browse files
committed
fix: allow dropdown form_type for boolean types
1 parent 50ed1c1 commit bd085a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provider/formtype.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ var formTypeTruthTable = map[OptionType]map[bool][]ParameterFormType{
9999
false: {ParameterFormTypeInput, ParameterFormTypeSlider},
100100
},
101101
OptionTypeBoolean: {
102-
true: {ParameterFormTypeRadio},
102+
true: {ParameterFormTypeRadio, ParameterFormTypeDropdown},
103103
false: {ParameterFormTypeCheckbox, ParameterFormTypeSwitch},
104104
},
105105
OptionTypeListString: {

0 commit comments

Comments
 (0)