Skip to content

Commit bcd33fe

Browse files
committed
refactor: 将antd废弃的destroyTooltipOnHide用destroyOnHidden替代
1 parent d06f890 commit bcd33fe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

client/packages/barda-design/src/components/colorSelect/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const ColorSelect = (props: ColorSelectProps) => {
3535
return (
3636
<Popover
3737
trigger={trigger}
38-
destroyTooltipOnHide={true}
38+
destroyOnHidden={true}
3939
onOpenChange={(value) => {
4040
pickerColor.current = toRGBA(color);
4141
setVisible(value);

client/packages/barda-design/src/components/iconSelect/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const IconPopup = (props: {
224224
title={icon.title}
225225
placement="bottom"
226226
align={{ offset: [0, -7, 0, 0] }}
227-
destroyTooltipOnHide
227+
destroyOnHidden
228228
>
229229
<IconItemContainer
230230
tabIndex={0}
@@ -297,7 +297,7 @@ export const IconSelectBase = (props: {
297297
// hide the original background when dragging the popover is allowed
298298
styles={styles.current}
299299
// when dragging is allowed, always re-location to avoid the popover exceeds the screen
300-
destroyTooltipOnHide
300+
destroyOnHidden
301301
content={
302302
<IconPopup
303303
onChange={props.onChange}

client/packages/barda-design/src/components/popover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const SimplePopover = (props: {
7878
align={{
7979
offset: [-12, 0, 0, 0],
8080
}}
81-
destroyTooltipOnHide
81+
destroyOnHidden
8282
content={contentWithBox}
8383
trigger="click"
8484
open={visible}

0 commit comments

Comments
 (0)