Skip to content

Click event's don't bubble outside SVG #1509

@sdemjanenko

Description

@sdemjanenko

Im doing something like:

<button type="button" onClick={this.toggle}>
  {this.props.label}
</button>

If this.props.label is a div, span or some text, clicking on it triggers this.toggle. However, if this.props.label is an svg then onClick never gets triggered.

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