Fix isHeightMeasured logic

This commit is contained in:
SleepWalker 2016-05-02 20:52:37 +03:00
parent cac70298a8
commit f9ffd22a21
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ class PanelTransition extends Component {
// a hack to disable height animation on first render
const isHeightMeasured = this.isHeightMeasured;
this.isHeightMeasured = formHeight > 0;
this.isHeightMeasured = isHeightMeasured || formHeight > 0;
return (
<TransitionMotion

View File

@ -108,7 +108,7 @@ export default class ChangeEmail extends Component {
// a hack to disable height animation on first render
const isHeightMeasured = this.isHeightMeasured;
this.isHeightMeasured = activeStepHeight > 0;
this.isHeightMeasured = isHeightMeasured || activeStepHeight > 0;
return (
<Motion