feat(select): ionChange will only emit from user committed changes (#26066)

BREAKING CHANGE:

`ionChange` is no longer emitted when the `value` of `ion-select` is modified externally. `ionChange` is only emitted from user committed changes, such as confirming a selected option in the select's overlay.
This commit is contained in:
Liam DeBeasi
2022-10-10 08:36:51 -05:00
committed by GitHub
parent b052d3b262
commit 34c4137868
12 changed files with 153 additions and 24 deletions

View File

@ -44,7 +44,13 @@ describe('Form', () => {
// TODO: FW-1160 - Remove when v7 is released
cy.wait(300);
cy.get('ion-select').invoke('prop', 'value', 'nes');
cy.get('ion-select').click();
cy.get('ion-alert').should('exist').should('be.visible');
// NES option
cy.get('ion-alert .alert-radio-button:nth-of-type(2)').click();
// Click confirm button
cy.get('ion-alert .alert-button:not(.alert-button-role-cancel)').click();
testStatus('INVALID');
cy.get('ion-range').invoke('prop', 'value', 40);