mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-30 02:32:58 +05:30
Fix isHeightMeasured logic
This commit is contained in:
parent
cac70298a8
commit
f9ffd22a21
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user