mirror of
https://github.com/acaloiaro/frm
synced 2026-07-21 18:29:12 +00:00
Merge pull request #9 from acaloiaro/fix-using-single-shoice-spaced-as-logic-target
fix: using single choice spaced fields as logic targets broken
This commit is contained in:
commit
f9e71bd54c
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