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 overflow issue when using Tooltip/Popover #857

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

Conversation

Lexachoc
Copy link
Contributor

@Lexachoc Lexachoc commented Apr 14, 2024

Fix #854

Strictly speaking, this issue is due to the use of popperjs in flowbite, but it can be fixed from the flowbite side

This is a temporary solution that I used. I use the same timeout of 100ms as the current source code:

this._hideHandler = () => {
setTimeout(() => {
if (!this._targetEl.matches(':hover')) {
this.hide();
}
}, 100);
};

cannot set transform='' within the original setTimeout, popperjs will update the position after hiding it
Fix Tooltip overflow issue
Fix Tooltip overflow issue (considering when Clipboard feature is used)
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.

Popover and Tooltip cause overflow (white space in page) when window resize
1 participant