Skip to content

Unable to get property 'target' of undefined or null reference in globalShow #498

@nickbullll

Description

@nickbullll

Hi react-tooltip team 👋

Sometimes an error occurs in Edge 18.17763 browsers

TypeError: Unable to get property 'target' of undefined or null reference

in

./node_modules/react-tooltip/dist/decorators/staticMethods.js in e.prototype.globalShow at line 43:1

here

target.prototype.globalShow = function (event) {
    if (this.mount) {
      // Create a fake event, specific show will limit the type to `solid`
      // only `float` type cares e.clientX e.clientY
      var e = { currentTarget: event.detail.target }; // <––– error occurs here
      this.showTooltip(e, true);
    }
  };

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