Skip to content

Creatable component doesn't allow input key down handling. #1247

@IvanLeonenko

Description

@IvanLeonenko

First of all, thanks for a nice component.

Creatable component has own handler of onInputKeyDown, which doesn't check if there's user's handler provided. So setting a handler for onInputKeyDown has no effect.

Doesn't work:

<Creatable
    onInputKeyDown={this.inputKeyDownHandler}
/>

I think, Creatable should call user's handler as well, otherwise it breaks defined API.

Going to create pull request on that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions