You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: [v7.5] ion-accordion-group doesn't work with variables with standalone components #28506
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v7.x
Current Behavior
I refactored my app to use the new standalone components. I found, that the accordion-group doesn't work, if the "value" property comes from a variable.
Thanks! Are you interested in submitting a PR for this? The fix should be to call this.valueChanged() in the componentDidLoad method on ion-accordion-group:
The problem here is Angular is setting the value of the accordion group after the component has been initialized (but not loaded) and before the component watchers are setup, so valueChanged does not fire automatically.
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.
Activity
liamdebeasi commentedon Nov 9, 2023
Thanks! Are you interested in submitting a PR for this? The fix should be to call
this.valueChanged()in thecomponentDidLoadmethod onion-accordion-group:ionic-framework/core/src/components/accordion-group/accordion-group.tsx
Line 78 in d69ad43
The problem here is Angular is setting the value of the accordion group after the component has been initialized (but not loaded) and before the component watchers are setup, so
valueChangeddoes not fire automatically.medbenmakhlouf commentedon Nov 10, 2023
Thanks @liamdebeasi ! just submitted a PR here : #28510
fix(accordion-group): correct accordion is open on load (#28510)
ionitron-bot commentedon Dec 13, 2023
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.