elegantthemes / Divi-Beta

8 stars 0 forks source link

"divi/icon" :: resetting font icon resets all fields of the group #93

Open IvanChiurcci opened 1 month ago

IvanChiurcci commented 1 month ago

Problem Description

Clicking to reset the font icon field value of the 'divi/icon' component resets all other fields of the group too ('color', 'useSize' and 'size').

Steps To Reproduce

  1. Add the 'divi/icon' group to a Divi module using the <ModuleFields /> component:
    
    const defaultFieldsProps = {
    icon: { 
      groupName:  'icon',
      render:     true,
      priority:    10,
      component: {
          type: 'group',
          name: 'divi/icon',
          props: {
              attrName:   `module.decoration.icon`,
              grouped:    true,
              fieldLabel: __(`Test Icon`, ''),
          }
      },
    },
    }

<GroupContainer groupName={groupName} id={groupId}

<ModuleFields fields={defaultFieldsProps} />


2. Go to the module settings, set the icon **color**, **size** and select the **font icon**.
3. Click the reset icon of the font icon selection field to reset it. This will reset not only the **font icon** field value but the values of the **color** and **size** as well.

Related Links

Gif

Divi5-IconGroup-resetting-icon-resets-all-fields

System Information