Skip to content

undefined is not a function (evaluating 'e.getAttribute("data-iscapture")') #256

@LeoIannacone

Description

@LeoIannacone

This code react-tooltip/dist/decorators/isCapture causes error in Safari (v8 and v9 for sure):

exports.default = function (target) {
  target.prototype.isCapture = function (currentTarget) {
    var dataIsCapture = currentTarget.getAttribute('data-iscapture');
    return dataIsCapture && dataIsCapture === 'true' || this.props.isCapture || false;
  };
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions