[MGNLUI-6684] Switchable field only displays the first field of multi-field forms Created: 03/May/21  Updated: 07/Jul/21  Resolved: 14/May/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.8
Fix Version/s: 6.2.9

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Adam Siska
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
is caused by MGNLUI-6546 Improve switchable field inner layout... Closed
duplicate
is duplicated by MGNLUI-6778 Switchablefield regression du to MGNL... Closed
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Date of First Response:
Epic Link: UI framework implementation
Sprint: UI FW 28
Story Points: 2

 Description   

The switchable field only displays the first field when the form has multiple fields.

Reproduce
Example configuration

form:
  properties:
    switchable:
      label: Switchable
      $type: switchableField
      field:
        $type: radioButtonGroupField
        layout: horizontal
        datasource:
          $type: optionListDatasource
          options:
            - name: foo
              value: foo
              label: Foo
            - name: bar
              value: bar
              label: Bar
      itemProvider:
        $type: jcrChildNodeProvider
      forms:
        - name: foo
          properties:
            foo:
              label: Text 1
              $type: textField
            foo2:
              label: Text 2
              $type: textField
        - name: bar
          properties:
            bar:
              label: Rich text
              $type: richTextField
            bar2:
              label: Text
              $type: textField

Actual
When selecting the option foo or bar only the first field is shown.

Expected
The entire form should be shown

Notes
Works in versions previous to 6.2.8


Generated at Mon Feb 12 09:38:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.