Skip to content
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: delay border when hover is blocked #290

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

DanielS-Qlik
Copy link
Collaborator

@DanielS-Qlik DanielS-Qlik commented Apr 26, 2023

fixes: #282
Delay border for 300ms when hovering is blocked by another element.
A blockUI div is present for a short time in sense-client when closing a listbox, due to a rpc state invalidation.

Before:
Kapture 2023-04-24 at 15 25 34

After:
Kapture 2023-04-27 at 09 43 53

@DanielS-Qlik DanielS-Qlik marked this pull request as ready for review April 27, 2023 07:38

document.addEventListener('mousemove', onMouseMove);
return (() => document.removeEventListener('mousemove', onMouseMove));
}, [containerRef.current]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not use containerRef.current as a dependency
I expect it to no be needed at all
(but if you want to keep it use containerRef without current)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flickering when clicking on collapsed FP to close popover
2 participants