-
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
Tooltip beforeClose
and close
events sometimes not emitted
#6279
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Field Apps
Issues logged by ArcGIS Field Apps team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
estimate - 8
Requires input from team, consider smaller steps.
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Comments
jcfranco
added a commit
that referenced
this issue
Aug 3, 2023
…s set to `display:none` (#7258) **Related Issue:** #6279 ## Summary This PR modifies `onToggleOpenCloseComponent` to account for the cases when `open` is toggled, event listeners are set up and the element is removed before the transition gets a chance to start by adding a timeout with a check of whether the transition has started. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt Driscoll <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JC Franco <[email protected]>
Installed and assigned for verification. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Field Apps
Issues logged by ArcGIS Field Apps team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
estimate - 8
Requires input from team, consider smaller steps.
p - medium
Issue is non core or affecting less that 60% of people using the library
Actual Behavior
If a tooltip is open inside a container when a
display: none
style is set on the container, the tooltip never emitscalciteTooltipBeforeClose
andcalciteTooltipClose
events.Expected Behavior
If a tooltip is open inside a container when a
display: none
style is set on the container, the tooltip still emitscalciteTooltipBeforeClose
andcalciteTooltipClose
events.Reproduction Sample
https://codepen.io/nwhittaker-esri/pen/bGjRNEW
Reproduction Steps
Reproduction Version
next.721
Relevant Info
IIRC,
transitionstart
andtransitionend
events don't fire if the element doesn't have display which may explain why the tooltip isn't emitting its close events.Regression?
No response
Impact
For performance reasons, the Field Maps web-app has some logic that remove a tooltip after it closes. In some cases, those tooltips appear alongside buttons that gain/lose display depending on whether a containing element is being hovered.
The current solution is to wait a hard-coded amount of time before removing the tooltip, but waiting for the event would be cleaner and easier to maintain.
Esri team
ArcGIS Field Apps
The text was updated successfully, but these errors were encountered: