Skip to content

onInputChange event not firing for AsyncCreatable #1506

@rubencodes

Description

@rubencodes

I'm trying to do some realtime cleaning of input as shown on the README.MD:

function cleanInput(inputValue) {
      // Strip all non-number characters from the input
    return inputValue.replace(/[^0-9]/g, "");
}   

<Select
    name="form-field-name"
    onInputChange={cleanInput}
/>

However, when using this option with AsyncCreatable, I'm finding it doesn't run at all. I'm on version 1.0.0-rc.2.

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