Skip to content

Commit

Permalink
fix(guide): handle pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Yilun-Sun committed Oct 12, 2022
1 parent 4d5be9f commit d9421cb
Show file tree
Hide file tree
Showing 9 changed files with 910 additions and 31 deletions.
3 changes: 2 additions & 1 deletion src/guide/Guide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const Guide = (props: GuideProps) => {
const useMount = (callback) => {
useEffect(() => {
callback();
}, []);
}, [callback]);
};

useMount(() => {
Expand Down Expand Up @@ -353,6 +353,7 @@ const Guide = (props: GuideProps) => {
showArrow={!content}
zIndex={zIndex}
overlayClassName={currentStepInfo.stepOverlayClass}
overlayInnerClassName={{ [`${prefixCls}__popup--content`]: !!content }}
placement={currentStepInfo.placement as StepPopupPlacement}
>
<div ref={referenceLayerRef} className={cx(classes)} />
Expand Down
Loading

0 comments on commit d9421cb

Please sign in to comment.