diff --git a/src/MultiValueControl.tsx b/src/MultiValueControl.tsx index 2bc47e8..4f86e09 100644 --- a/src/MultiValueControl.tsx +++ b/src/MultiValueControl.tsx @@ -156,9 +156,10 @@ export class MultiValueControl extends React.Component o.indexOf(filter) === 0), - ...opts.filter((o) => o.indexOf(filter) > 0), + ...opts.filter((o) => o.toLocaleLowerCase().indexOf(filter) === 0), + ...opts.filter((o) => o.toLocaleLowerCase().indexOf(filter) > 0), ]; + return this._allowCustom ? [this.state.filter, ...filtered] : filtered; } private _onInputChange = (event: React.FormEvent, newValue?: string) => {