feat(accordion): ionChange will only emit from user committed changes (#25922)

BREAKING CHANGE:

`ionChange` is no longer emitted when the `value` of `ion-accordion-group` is modified externally. `ionChange` is only emitted from user committed changes, such as clicking or tapping the accordion header.
This commit is contained in:
Liam DeBeasi
2022-09-13 13:33:49 -05:00
committed by GitHub
parent 89b880e91d
commit 4eea9fa5c0
7 changed files with 154 additions and 13 deletions

View File

@ -31,7 +31,10 @@ export class IonAccordion {
import type { AccordionGroupChangeEventDetail as IAccordionGroupAccordionGroupChangeEventDetail } from '@ionic/core';
export declare interface IonAccordionGroup extends Components.IonAccordionGroup {
/**
* Emitted when the value property has changed.
* Emitted when the value property has changed
as a result of a user action such as a click.
This event will not emit when programmatically setting
the value property.
*/
ionChange: EventEmitter<CustomEvent<IAccordionGroupAccordionGroupChangeEventDetail>>;