-
Notifications
You must be signed in to change notification settings - Fork 807
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
[fixed] Modal.removePortal not called when using closetimeoutMS #447
Conversation
1 similar comment
src/components/Modal.js
Outdated
@@ -140,7 +140,7 @@ export default class Modal extends Component { | |||
this.portal.closeWithTimeout(); | |||
} | |||
|
|||
setTimeout(() => this.removePortal, closesAt - now); | |||
setTimeout(() => this.removePortal(), closesAt - now); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is correct. You can remove the arrow function and it should work.
setTimeout(this.removePortal, closesAt - now);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I've updated my commit to remove the arrow function.
6593bea
to
f7897a4
Compare
1 similar comment
Thank you, @seanich! |
Release |
Acceptance Checklist:
CONTRIBUTING.md
.