Skip to content

Commit 257abd5

Browse files
authored
fix(HoverPopup): prevent untimely closing (#2926)
1 parent 5624d26 commit 257abd5

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/components/HoverPopup/HoverPopup.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ export const HoverPopup = ({
108108
// bigger offset for easier switching to neighbour nodes
109109
// matches the default offset for popup with arrow out of a sense of beauty
110110
offset={offset || {mainAxis: 12, crossAxis: 0}}
111-
className={YDB_POPOVER_CLASS_NAME}
112111
>
113112
<div
114113
className={contentClassName}
@@ -117,7 +116,7 @@ export const HoverPopup = ({
117116
onMouseLeave={onPopupMouseLeave}
118117
onBlur={onPopupBlur}
119118
>
120-
{renderPopupContent()}
119+
<div className={YDB_POPOVER_CLASS_NAME}>{renderPopupContent()}</div>
121120
</div>
122121
</Popup>
123122
) : null}

src/components/VDisk/VDisk.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const VDisk = ({
4646
onShowPopup={onShowPopup}
4747
onHidePopup={onHidePopup}
4848
renderPopupContent={() => <VDiskPopup data={data} />}
49-
offset={{mainAxis: 5, crossAxis: 0}}
49+
offset={{mainAxis: 2, crossAxis: 0}}
5050
delayClose={delayClose}
5151
delayOpen={delayOpen}
5252
>

src/containers/Storage/PDisk/PDisk.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const PDisk = ({
8585
{renderVDisks()}
8686
<HoverPopup
8787
showPopup={showPopup}
88-
offset={{mainAxis: 5, crossAxis: 0}}
88+
offset={{mainAxis: 2, crossAxis: 0}}
8989
anchorRef={anchorRef}
9090
onShowPopup={onShowPopup}
9191
onHidePopup={onHidePopup}

0 commit comments

Comments
 (0)