Skip to content

Commit

Permalink
fix: fix ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
NewByVector committed Dec 17, 2024
1 parent 99ddbab commit 1da0842
Show file tree
Hide file tree
Showing 2 changed files with 28,609 additions and 14,730 deletions.
12 changes: 5 additions & 7 deletions packages/x6-react-components/src/color-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@ export class ColorPicker extends React.Component<
}
}

refContainer = (popoverRef: { getContainer: () => HTMLDivElement }) => {
if (popoverRef) {
this.container = popoverRef.getContainer()
}
}

renderPicker() {
const { prefixCls, disabled, style, ...props } = this.props

Expand Down Expand Up @@ -125,7 +119,11 @@ export class ColorPicker extends React.Component<
content={this.renderPicker()}
overlayClassName={`${baseCls}-overlay`}
destroyTooltipOnHide
ref={this.refContainer}
ref={(ref) => {
if (ref) {
this.container = (ref as any).getContainer()
}
}}
trigger={[]}
>
<div
Expand Down
Loading

0 comments on commit 1da0842

Please sign in to comment.