-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Vue IonAccordionGroup takes value from underlying component #424
Comments
Thanks! This appears to be a bug in our Vue wrappers, so the issue will need to be fixed there. The problem is that we listen for the event name but accept any instance of that event. In the case of the AccordionGroup, we should only update its v-model when |
Here's a dev build with this repo's fix in Ionic Framework if you are interested in testing:
|
Yep, looks like that fixes it 👍 |
Thanks for testing! This was fixed in #425. I'll cut a new release of this package and make sure it's installed in Ionic Framework. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the output targets, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
v7.x
Current Behavior
It appears that the ion-accordion-group v-model takes the value from an underlying component (ion-searchbar in this case) when the underlying component changes model value.
Seems this is the same issue as ionic-team/ionic-framework#28288
Expected Behavior
Model value of ion-accordion-group should not be affected by a changing model value of an underlying component
Steps to Reproduce
One
. Text below the accordion will change toone
.accordion
value changed to the text that was typed into the searchbar.Code Reproduction URL
https://stackblitz.com/edit/hhmqhk-nfvvdf?file=src%2Fcomponents%2FExample.vue
Ionic Info
Ionic:
Ionic CLI : 6.20.5 (C:\Users\Chris\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/vue 7.8.1
Capacitor:
Capacitor CLI : 5.5.0
@capacitor/android : 5.5.0
@capacitor/core : 5.5.0
@capacitor/ios : 5.5.0
Utility:
cordova-res : not installed globally
native-run : 1.7.3
System:
NodeJS : v20.11.1 (C:\Program Files\nodejs\node.exe)
npm : 10.2.4
OS : Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: