Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Commit

Permalink
feat: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
osdnk authored and satya164 committed Aug 18, 2019
1 parent 73b8d22 commit c2eb482
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/stack/src/views/Stack/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export default class Card extends React.Component<Props> {
)
),
// Stop animations while we're dragging
// and invoke proper listener
cond(
clockRunning(this.clock),
call([this.toValue], ([target]) => {
Expand Down Expand Up @@ -379,6 +380,9 @@ export default class Card extends React.Component<Props> {
]);

componentWillUnmount(): void {
// It might sometimes happen than animation will be unmounted
// during running. However, we need to invoke listener onClose
// manually in this case
if (this.isRunningAnimation) {
this.props.onClose(false);
}
Expand Down

0 comments on commit c2eb482

Please sign in to comment.