-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: do not hide pdisk and vdisk popups if mouse on popup content #1435
fix: do not hide pdisk and vdisk popups if mouse on popup content #1435
Conversation
Please, change PR title prefix to |
@artemmufazalov added debounce cancelation to prevent appearing not needed popups on fast mast movement |
6ce9c94
to
00301ed
Compare
@Raubzeug added delay for table cells as discussed |
Deployed stand for testing |
@@ -70,6 +70,14 @@ export const PDiskPopup = ({data, ...props}: PDiskPopupProps) => { | |||
const nodeHost = valueIsDefined(data.NodeId) ? nodeHostsMap?.get(data.NodeId) : undefined; | |||
const info = React.useMemo(() => preparePDiskData(data, nodeHost), [data, nodeHost]); | |||
|
|||
const [isPopupOpen, setIsPopupOpen] = React.useState(props.open); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's not stick to props value as initial. Let it be separate property lets say [isPopupHovered, setIsPopupHovered] = React.useState(false)
@@ -136,6 +136,13 @@ interface VDiskPopupProps extends PopupProps { | |||
|
|||
export const VDiskPopup = ({data, ...props}: VDiskPopupProps) => { | |||
const isFullData = isFullVDiskData(data); | |||
const [isPopupOpen, setIsPopupOpen] = React.useState(props.open); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Closes #1360
Stand
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
Bundle Size: ✅
Current: 78.97 MB | Main: 78.97 MB
Diff: +0.00 MB (0.00%)
✅ Bundle size unchanged.
ℹ️ CI Information