mirror of
https://github.com/acaloiaro/frm
synced 2026-07-21 10:12:23 +00:00
fix: using single choice spaced fields as logic targets broken
This commit is contained in:
parent
2353b45eeb
commit
ce05af1152
2 changed files with 2 additions and 2 deletions
|
|
@ -508,7 +508,7 @@ func actionLabelFor(action types.FieldLogicTriggerAction) string {
|
|||
// targetField: the target field chosen as the logic target
|
||||
templ LogicConfiguratorStepThree(form frm.Form, field types.FormField, targetField types.FormField) {
|
||||
switch targetField.Type {
|
||||
case types.FormFieldTypeMultiSelect, types.FormFieldTypeSingleSelect, types.FormFieldTypeSingleChoice:
|
||||
case types.FormFieldTypeMultiSelect, types.FormFieldTypeSingleSelect, types.FormFieldTypeSingleChoice, types.FormFieldTypeSingleChoiceSpaced:
|
||||
@selector.Selector(selector.SelectArgs{
|
||||
ID: fmt.Sprintf("%s-logic-chosen-field-value", field.ID.String()),
|
||||
Label: "",
|
||||
|
|
|
|||
|
|
@ -1499,7 +1499,7 @@ func LogicConfiguratorStepThree(form frm.Form, field types.FormField, targetFiel
|
|||
}
|
||||
ctx = templ.ClearChildren(ctx)
|
||||
switch targetField.Type {
|
||||
case types.FormFieldTypeMultiSelect, types.FormFieldTypeSingleSelect, types.FormFieldTypeSingleChoice:
|
||||
case types.FormFieldTypeMultiSelect, types.FormFieldTypeSingleSelect, types.FormFieldTypeSingleChoice, types.FormFieldTypeSingleChoiceSpaced:
|
||||
templ_7745c5c3_Err = selector.Selector(selector.SelectArgs{
|
||||
ID: fmt.Sprintf("%s-logic-chosen-field-value", field.ID.String()),
|
||||
Label: "",
|
||||
|
|
|
|||
Loading…
Reference in a new issue