feat(): add ability to continue processing hardware back button events (#20613)

fixes #17824
This commit is contained in:
Liam DeBeasi
2020-04-27 12:58:37 -04:00
committed by GitHub
parent 429edb053b
commit 3821c0463a
8 changed files with 115 additions and 37 deletions

View File

@ -36,8 +36,9 @@ export class NavManager extends React.Component<NavManagerProps, NavContextState
if (document) {
document.addEventListener('ionBackButton', (e: any) => {
e.detail.register(0, () => {
e.detail.register(0, (processNextHandler: () => void) => {
this.props.history.goBack();
processNextHandler();
});
});
}