Skip to content

Commit

Permalink
fix: update Guides.tsx (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
usmanpakistan authored Mar 3, 2023
1 parent ba65803 commit a11951c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react-guides/src/react-guides/Guides.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default class Guides extends React.PureComponent<GuidesProps, GuidesState
cspNonce,
dragGuideStyle,
portalContainer,
guidePosStyle = {}
} = this.props as Required<GuidesProps>;
const props = this.props;
const translateName = this.getTranslateName();
Expand Down Expand Up @@ -97,8 +98,8 @@ export default class Guides extends React.PureComponent<GuidesProps, GuidesState
transform: `${translateName}(${-this.scrollPos * zoom}px)`,
}}>
{displayDragPos && <div className={DISPLAY_DRAG}
ref={ref(this, "displayElement")} style={dragGuideStyle} />}
<div className={ADDER} ref={ref(this, "adderElement")} />
ref={ref(this, "displayElement")} style={guidePosStyle || {}}/>}
<div className={ADDER} ref={ref(this, "adderElement")} style={dragGuideStyle}/>
{this.renderGuides()}
</div>
</GuidesElement>;
Expand Down

0 comments on commit a11951c

Please sign in to comment.