Skip to content

[Select] onBlur event target #12204

@Mangatt

Description

@Mangatt

There is some mismatch with [Select] events.

<Select 
    onChange={console.log} 
    onBlur={console.log}
>
    {options}
</Select>

In this case, both events are fired, but onChange has event.target set to [Input] with appropriate attributes, but onBlur has event.target set to [Select]. Even when onBlur is set directly to [Input], event.target is still [Select].

Problem is that this makes onBlur event useless when you need handle input value onBlur in stateless components. You can't read input value or any of attributes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGreat for first contributions. Enable to learn the contribution process.scope: selectChanges related to the select.type: new featureExpand the scope of the product to solve a new problem.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions