Skip to content

onBlur issue #16

@murphyke

Description

@murphyke

I have an onBlur handler for the autosuggest box that sets state. However, if the blur happens because the user clicked the submit button, the submit event never happens. My understanding is that React cancels events after the blur due to the setting of state.

With a regular onBlur handler I could check the event's relatedTarget and conditionally set the state. However, the autosuggest component only passes its value to the onBlur handler.

I will try delaying the blur handler's functionality with a timeout, but ... I miss the event properties.

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