Skip to content

[FEAT REQ] Deprecate the events prop in favor of a openOnClick prop #946

@gabrieljablonski

Description

@gabrieljablonski

Is your feature request related to a problem? Please describe.
In previous versions, the click event worked in a way which made sense to have both hover and click enabled together (you could open on hover, and click on the anchor element to close). Since that behavior changed (clicking the tooltip always opens it, and clicking outside the anchor element closes it), having them both together doesn't do anything (hover takes precedence).

Describe the solution you'd like
We should deprecate the events prop and add a openOnClick (or some better name that is as clear as this) prop which can be effectively used to toggle between the hover and click events.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions