Skip to content

onBlur has inconsistent behavior. #418

Open
@lmotioc

Description

@lmotioc

Describe the bug
On Blur doesn't get triggered on focus out.
When a selected option is removed with the 'x'button onBlur isn't triggered, but when it is removed from the dropdown, on blur is triggered.

To Reproduce
CodeSandbox here with a console.log attached to onBlur.

  • focus in and focus out the select, on blur doesn't get triggered. (navigating with tab)
  • remove a selected option from the control (using the x button) on blur doesn't get triggered, but when you uncheck a selected option, onBlur gets triggered.

Expected behavior
onBlur to be triggered on focus out.
onBlur to be triggered when removing a component with the x button

Environment (please complete the following information):

  • Browser [e.g. chrome v84, firefox v78]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions