Skip to content

Commit

Permalink
Merge pull request #3399 from microsoft-search/fix/3328
Browse files Browse the repository at this point in the history
#3328 Remove callout on close
  • Loading branch information
wobba authored Dec 13, 2023
2 parents e8bdbe6 + 33c23ec commit 20de1a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export default class PreviewContainer extends React.Component<IPreviewContainerP
let renderLoading: JSX.Element = this.state.isLoading ? <Overlay isDarkThemed={false} className={previewContainerStyles.overlay}><Spinner size={ SpinnerSize.large }/></Overlay>: null;
let backgroundImage = this.state.isLoading ? `url('${this.props.previewImageUrl}')` : 'none';

return <Callout

return !this.state.showCallout ? null : <Callout
gapSpace={0}
target={this.props.targetElement}
hidden={false}
Expand Down

0 comments on commit 20de1a0

Please sign in to comment.