diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-29 08:51:39 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-29 08:51:39 +0800 |
commit | 9ada8e4ddf621bb747ba1f35bfd62ac22db40d30 (patch) | |
tree | 5eea056b7f0f4ac1b4e7e9a306325a694e58ed00 /packages/website/ts/components/onboarding | |
parent | 0142e7fa8f3c28737c6352945c1f1b72c5f7339d (diff) | |
download | dexon-sol-tools-9ada8e4ddf621bb747ba1f35bfd62ac22db40d30.tar.gz dexon-sol-tools-9ada8e4ddf621bb747ba1f35bfd62ac22db40d30.tar.zst dexon-sol-tools-9ada8e4ddf621bb747ba1f35bfd62ac22db40d30.zip |
Re-center react-popper on every step
Diffstat (limited to 'packages/website/ts/components/onboarding')
-rw-r--r-- | packages/website/ts/components/onboarding/onboarding_flow.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/website/ts/components/onboarding/onboarding_flow.tsx b/packages/website/ts/components/onboarding/onboarding_flow.tsx index 834634909..1f4c6df82 100644 --- a/packages/website/ts/components/onboarding/onboarding_flow.tsx +++ b/packages/website/ts/components/onboarding/onboarding_flow.tsx @@ -68,6 +68,8 @@ export class OnboardingFlow extends React.Component<OnboardingFlowProps> { } private _renderPopperChildren(props: PopperChildrenProps): React.ReactNode { const customStyles = { zIndex: zIndex.aboveOverlay }; + // On re-render, we want to re-center the popper. + props.scheduleUpdate(); return ( <div ref={props.ref} style={{ ...props.style, ...customStyles }} data-placement={props.placement}> {this._renderToolTip()} |