Skip to content

[SelectField] currentTarget no longer works #5085

@wlcdesigns

Description

@wlcdesigns

Prior to 0.15.4 I was able to capture custom data from the selected menu items with event.currentTarget.dataset. Now event.currentTarget returns null onChange

Example:

<SelectField value={this.state.value} onChange={this.handleSelect}>
      <MenuItem value={1} data-customData="foo_bar" primaryText="Choose Something" />
      <MenuItem value={1} data-customData="bar_foo" primaryText="Choose Something Else etc." />
</SelectField>

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: selectChanges related to the select.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions