-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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: accordion does not expand on multiple opens when using angular binding #25307
Comments
Thanks for the issue. This happens when binding to |
When the modal opens the second time, the accordion state acts like the first two accordion items are expanded, but visually does not paint it correctly. When you interact with an accordion item other than the "Test 1" or "Test 2", you will see the Based on the logic of
|
The first time the modal opens The second time the modal opens, Once Angular sets the One idea here is to set the state to |
Can you try the following dev build, and let me know if it resolves the issue?
|
Hey, just tried this and it seems to have fixed the issue :) |
Thanks for the issue. This has been resolved via #25322, and a fix will be available in an upcoming release of 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 Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
I have a page from which I can open a modal component.
However when the app loads, the first time I open the detailed modal the accordion works as expected with those 2 tabs open. However when I close the modal and re open the modal then it does not render correctly and all the tabs remain shut. This behaviours occurs after I open any accordion for the first time on the page. After which any accordion in the modal does not render correctly
Expected Behavior
When the modal reopens the accordion should re render. Note that this is not just for one page, the issue will occcure to all accordians in the app after first use
Steps to Reproduce
I have added a reproducable example to the git repo in the ticket.
If you run the app then click on open modal. Then close and reopen the modal the accordion tabs will remain shut
Code Reproduction URL
https://github.com/akshay199414/AccordionExample
Ionic Info
Ionic:
Ionic CLI : 6.19.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.1.6
@angular-devkit/build-angular : 13.2.6
@angular-devkit/schematics : 13.2.6
@angular/cli : 13.2.6
@ionic/angular-toolkit : 6.1.0
Capacitor:
Capacitor CLI : 3.5.1
@capacitor/android : not installed
@capacitor/core : 3.5.1
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : 1.6.0
System:
NodeJS : v16.14.2 (/usr/bin/node)
npm : 8.5.0
OS : Linux 5.10
─────────────────────────────────────────────────
─────────────────────────────────────────────────
Additional Information
No response
The text was updated successfully, but these errors were encountered: