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

On Location Change don't pass event as result #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SergeyCherman
Copy link

I think when closing the modal on location change it shouldn't pass event as the result .

I think when closing the modal on location change it shouldn't pass event as the result .
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 86.154% when pulling 6321278 on SergeyCherman:patch-1 into 2c07464 on dwmkerr:master.

@unkillbob
Copy link

I wonder if it would make more sense to reject the close and closed promises in this case? The modal is being closed by an external force (the location change), it feels more like a "cancel" than a successful closing of the modal to me.

@SergeyCherman
Copy link
Author

I can see it both ways, however it's possible users of the service have one function for ok/cancel which then uses the function input to decide what to do. In this case if a user has any cleanup logic on modal close it wouldn't run.
Currently reject doesn't fire unless the service isn't being used correct, so it would be a change for service users as they probably don't have logic for the reject case.

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

Successfully merging this pull request may close these issues.

3 participants