-
Notifications
You must be signed in to change notification settings - Fork 77
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
calcite-popover
does not open in a specific case with calcite-tooltip
#7158
Comments
It seems to have to do with debouncing the reposition() method internally. If you resize the page when it gets into one of those bad states it seems to bring the component up to date because it calls reposition again. @jmanke does this only happen when there is both a tooltip and popover or can you reproduce with just a popover? |
…, tooltip): Prevent repositioning from affecting other floating components. #7158
@driskull I can't seem to repro the issue when I remove the tooltip. It may be a timing issue on my end, but I've tried ~50 times and couldn't repro the bug. The only way I've been able to repro is with the steps above. |
Thanks Jeff, those findings make sense. 👍 I think we know the issue and will get it fixed. |
…, tooltip): Prevent repositioning from affecting other floating components (#7178) **Related Issue:** #7158 ## Summary This prevent repositioning from affecting other floating components caused by using a shared, debounced reposition function. Additionally, this will cancel any in-progress debounced calls if the component is disconnected. --------- Co-authored-by: JC Franco <jfranco@esri.com>
Installed and assigned for verification. |
Verified in |
Actual Behavior
When a
calcite-action
(element type may not be important) is the target of both acalcite-popover
andcalcite-tooltip
, thecalcite-popover
will not open if thecalcite-tooltip
is in the process of appearing. For example, the user hovers over thecalcite-action
and the tooltip starts to appear - at this exact time, clicking on the action will not open thecalcite-popover
. The user will need to click thecalcite-action
two more times for thecalcite-popover
to appear.Expected Behavior
The
calcite-popover
should appear when the user clicks its target.Reproduction Sample
https://codepen.io/jmanke/pen/ExOabVd?editors=1011
Reproduction Steps
The following repro steps are for this codepen:
Reproduction Version
v1.4.2
Relevant Info
Tested on Chrome v114 on MacOS Ventura 13.4
Regression?
No response
Priority impact
p3 - want for upcoming milestone
Impact
Medium - it feels like the popover is broken for some users in this particular workflow.
Esri team
ArcGIS Dashboards
The text was updated successfully, but these errors were encountered: