fix(react): remove hardware back button event listener when NavManager is unmounted (#23224)

resolves #23170
This commit is contained in:
William Martin
2021-04-28 17:47:33 -04:00
committed by GitHub
parent f2f41e2af4
commit c501da73be
2 changed files with 28 additions and 6 deletions

View File

@ -123,3 +123,7 @@ Cypress.Commands.add('ionMenuClick', () => {
// .click()
// cy.get('ion-menu.show-menu').should('exist');
});
Cypress.Commands.add('ionHardwareBackEvent', () => {
cy.document().trigger('backbutton');
});