Skip to content

newOptionCreator not working as intended. #658

@bIgBV

Description

@bIgBV

I am facing this issue when trying to add a new value through the input box.

When allowCreate is set to true, the function passed as the newOptionCreator prop is not being called.

For example:

....
    optionCreator: function (value) {
        console.log(value); // This line isn't reached.
    },

    render: function() {
        return (
            <Select multi={true}
                    allowCreate={true}
                    newOptionCreator={this.optionCreator} />
        );
    }

...

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