Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49256

How to prevent AccordionGroup to run default value

$
0
0

I’ve got an AccordionGroup with a value to open the first accordion.

 <IonAccordionGroup
          multiple={true}
          value="first"

In my second accordion their is an ion-input.

<IonAccordion
            value="third"
...
<IonInput
    label=...
    value={location}
    type="text"
    onIonInput={(e) => setLocation(e.detail.value as string)}

OnIonInput the AccordionGroup is closing the second accordion and opens the first (setting its value to default)

How can I prevent that setting a value is rerunning the accordiongroup? Or is my problem an other one?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>