Skip to content

Commit

Permalink
Merge pull request #66 from Workiva/transition_hotfix
Browse files Browse the repository at this point in the history
UIP-2260 Release over_react 1.9.1 (HOTFIX)
  • Loading branch information
aaronlademann-wf authored May 3, 2017
2 parents 7fde32b + 1f41e0b commit ada853b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# OverReact Changelog


## 1.9.1

> [Complete `1.9.1` Changeset](https://github.com/Workiva/over_react/compare/1.9.0...1.9.1)
__Bug Fixes__

* [#66]: Fix regression with transitions not completing in consumers of AbstractTransition that don't call `super.componentDidMount`

 

## 1.9.0

> [Complete `1.9.0` Changeset](https://github.com/Workiva/over_react/compare/1.8.0...1.9.0)
Expand Down
11 changes: 3 additions & 8 deletions lib/src/component/abstract_transition.dart
Original file line number Diff line number Diff line change
Expand Up @@ -296,16 +296,11 @@ abstract class AbstractTransitionComponent<T extends AbstractTransitionProps, S
}
}

var _isMounted = false;

@override
void componentDidMount() {
_isMounted = true;
}
var _isUnmounted = false;

@override
void componentWillUnmount() {
_isMounted = false;
_isUnmounted = true;
_cancelTransitionEventListener();
}

Expand Down Expand Up @@ -359,7 +354,7 @@ abstract class AbstractTransitionComponent<T extends AbstractTransitionProps, S
_cancelTransitionEndTimer();
} else {
onNextTransitionEnd(() {
if (_isMounted && state.transitionPhase == TransitionPhase.HIDING) {
if (!_isUnmounted && state.transitionPhase == TransitionPhase.HIDING) {
setState(newState()
..transitionPhase = TransitionPhase.HIDDEN
);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: over_react
version: 1.9.0
version: 1.9.1
description: A library for building statically-typed React UI components using Dart.
homepage: https://github.com/Workiva/over_react/
authors:
Expand Down

0 comments on commit ada853b

Please sign in to comment.