Skip to content

bug: React, can't set value to array in JSX #25041

@XueMeijing

Description

@XueMeijing

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

IonAccordionGroup default value of array which has more than one item doesn't work

image

Expected Behavior

IonAccordionGroup default value of array which has more than one item works normal

Steps to Reproduce

the code is the screenshot above. Or maybe you can clone git@github.com:XueMeijing/ionic-test.git to recurrent it

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.18.1 (/Users/xue/.nvm/versions/node/v10.24.1/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 6.0.1

Capacitor:

Capacitor CLI : not installed
@capacitor/android : not installed
@capacitor/core : 3.3.3
@capacitor/ios : 3.3.3

Utility:

cordova-res : not installed globally
native-run : 1.5.0

System:

NodeJS : v10.24.1 (/Users/xue/.nvm/versions/node/v10.24.1/bin/node)
npm : 6.14.12
OS : macOS Big Sur

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions