-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Tooltip2/Popover2 cause infinite loop when Chrome is zoomed out to or past 75% #2029
Comments
oh yeah total repro, straight to crash city :( |
FWIW, this doesn't seem to happen with my lib which uses Popper.js. |
@giladgray I just spent a long time trying to track down this bug which occurs for certain tooltips but not others. Very confusing. It seems like it is probably a popper.js issue, but is there something blueprint can do in the meantime to make it so users don't hit this? Maybe temporarily apply the quick fix above:
|
@tnrich awesome, thanks for tracking that down! a fix like you suggest certainly does not belong in a library like Blueprint; it belongs in your app initialization code. we can't ban zooming across the board! |
@giladgray I wasn't suggesting that this be a permanent solution, but I do think having it in there until popperjs gets fixed would be a net benefit to blueprint users. Otherwise you'll have some very confusing and buggy behavior. Or help fix popper :) Your call of course still though. |
@tnrich The fix I posted above doesn't work on Retina displays on Mac. |
@tnrich that's the kind of fix that belongs in your app initialization code, not as a side effect from a library import. |
This seems to have stopped happening for me. Anyone else not getting this anymore? |
I'm not seeing it either! |
fixed by popper? should we close? |
@giladgray I think we're still seeing this issue on Chrome 70, Mac OS High Sierra. |
Going to close this issue, please open a new one with more details about the exact Popover/Tooltip API usage (and ideally a codesandbox repro) if you still see this. |
Possibly related to floating-ui/react-popper#320 |
@schlosna Relating that in our case the fix proposed in floating-ui/react-popper#320 addressed the issue described here for our app which utilizes Blueprint. |
@adidahiya we should probably reopen this to track @mfedderly ’s upstream popper fix to merge & release. |
fixed by #3885 |
Bug report
Steps to reproduce
This is reproducible on the blueprint v2 docs with the "Hover and click me" button when you click it.
A quick "fix" is to disable zooming on Chrome by setting
document.body.style.zoom
to1 / window.devicePixelRatio
initially and every resize.Actual behavior
Chrome freezes at 100% CPU usage with no console error.
This error is very inconsistent and appears to depend on the size of the popover/tooltip. I have a feeling this is related to Popper.js. Perhaps this issue?
The text was updated successfully, but these errors were encountered: