feat(textarea): ionChange will only emit from user committed changes (#25953)

This commit is contained in:
Sean Perkins
2022-09-23 13:26:21 -04:00
committed by GitHub
parent a03c8afb3d
commit 68bae80a51
15 changed files with 280 additions and 33 deletions

View File

@ -0,0 +1,18 @@
describe('Textarea', () => {
beforeEach(() => cy.visit('/textarea'));
it('should become valid', () => {
cy.get('#status').should('have.text', 'INVALID');
cy.get('ion-textarea').type('hello');
cy.get('#status').should('have.text', 'VALID');
});
it('should update the form control value when typing', () => {
cy.get('#value').contains(`"textarea": ""`);
cy.get('ion-textarea').type('hello');
cy.get('#value').contains(`"textarea": "hello"`);
});
});