Skip to content

[FEAT REQ] Add mousedown event to closeEvents property #1223

Closed

Description

@roelkoops

First of all: thanks for this great project!

I have a feature request:

I would like to see the event mousedown added to the property closeEvents.
I have an element that can be resized by dragging the edges and I want to close the tooltip on that element when that happens.

Activity

  1. github-actions commented on Nov 27, 2024

    @github-actions

    This issue is stale because it has not seen activity in 30 days. Remove the stale label or comment within 14 days, or it will be closed.

  2. roelkoops commented on Nov 27, 2024

    @roelkoops
    Author

    Comment to remove the "Stale" label

  3. removed
    StaleThis has not seen activity in quite some time
    on Nov 27, 2024
  4. danielbarion commented on Dec 2, 2024

    @danielbarion
    Member

    @roelkoops until we implement this event, you can use a controlled state to control the tooltip show/hide, so you can build any custom logic to hide/show it

  5. github-actions commented on Mar 3, 2025

    @github-actions

    This issue is stale because it has not seen activity in 30 days. Remove the stale label or comment within 14 days, or it will be closed.

  6. added
    StaleThis has not seen activity in quite some time
    on Mar 3, 2025
  7. added
    V6It might get fixed/merged before, but most likely only on V6's release.
    and removed
    StaleThis has not seen activity in quite some time
    on Mar 3, 2025
  8. roelkoops commented on Mar 3, 2025

    @roelkoops
    Author

    Comment to remove the "Stale" label

  9. harmadema commented on Apr 7, 2026

    @harmadema

    @roelkoops it already works they apply every event inside this file. The only problem is that the type isn't supported. So force the type and add the mousedown: true; closeEvents={{ mousedown: true } as Record<string, boolean>}

    enabledEvents.push({ event, listener: debouncedHandleHideTooltip })

    @danielbarion The only thing that needs to be done is add html events to the AnchorCloseEvents type. Or add a [string]: boolean variant.

  10. danielbarion commented on Apr 7, 2026

    @danielbarion
    Member

    Thanks for letting me know, I'll try to release it this week @harmadema

  11. self-assigned this
    on Apr 7, 2026
  12. danielbarion commented on Apr 9, 2026

    @danielbarion
    Member

    Can you please test the beta release from here: #1266 (comment)

    And let me know your thoughts?

    cc @roelkoops @harmadema

  13. removed
    V6It might get fixed/merged before, but most likely only on V6's release.
    on Apr 9, 2026
  14. roelkoops commented on Apr 10, 2026

    @roelkoops
    Author

    I tried the beta and can confirm this works as intended 👍
    Thanks for implementing this @danielbarion and also thanks to @harmadema

    Do you have an ETA for when this will be included in a release?

  15. danielbarion commented on Apr 10, 2026

    @danielbarion
    Member

    Thanks for confirming. I plan to release it today with another bug :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions