mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-02 11:41:04 +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
|
// a hack to disable height animation on first render
|
||||||
const isHeightMeasured = this.isHeightMeasured;
|
const isHeightMeasured = this.isHeightMeasured;
|
||||||
this.isHeightMeasured = formHeight > 0;
|
this.isHeightMeasured = isHeightMeasured || formHeight > 0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TransitionMotion
|
<TransitionMotion
|
||||||
|
@ -108,7 +108,7 @@ export default class ChangeEmail extends Component {
|
|||||||
|
|
||||||
// a hack to disable height animation on first render
|
// a hack to disable height animation on first render
|
||||||
const isHeightMeasured = this.isHeightMeasured;
|
const isHeightMeasured = this.isHeightMeasured;
|
||||||
this.isHeightMeasured = activeStepHeight > 0;
|
this.isHeightMeasured = isHeightMeasured || activeStepHeight > 0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Motion
|
<Motion
|
||||||
|
Loading…
Reference in New Issue
Block a user