Skip to content

Standardize getTarget #424

@eddywashere

Description

@eddywashere

From #331 (comment)

It looks like we need to standardize and abstract the getTarget functionality into utils. Right now popover/tooltip have different ways of getting target. To future proof getTarget as much as possible it should support a css selector (string), a dom reference or a function that returns a dom reference. Once that's in it will be easier to check if target matches click target. going to close this out until that happens.

Components to update

  • Tooltip
  • Popover

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions