Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there an option to listen to back button press? #277

Closed
logblythe opened this issue Dec 15, 2021 · 2 comments
Closed

Is there an option to listen to back button press? #277

logblythe opened this issue Dec 15, 2021 · 2 comments

Comments

@logblythe
Copy link

I went through the list of available event listeners over here
https://developer.nylas.com/docs/user-experience/components/mailbox-component/#mailbox-event-listeners

But couldn't find a way to listen to back button press. Is there such option?

@krisgardiner
Copy link
Contributor

@logblythe thanks for checking out our docs! We currently don't have this feature but we can add it to the next release. We'll keep you posted when it's available.

@krisgardiner
Copy link
Contributor

krisgardiner commented Dec 15, 2021

@logblythe After investigating, returnToMailbox is an event that is dispatched when the back button is clicked. https://github.com/nylas/components/blob/main/components/email/src/Email.svelte#L473. I'll be updating the docs with this event listener soon.

Here's an example https://github.com/nylas/components/pull/280/files#diff-c581fcb635d197f2f77d850597322a79ed66aebfaec58a2b7e1f919e8ebde8a2R14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants