React-select: Doesn't recognize some special characters like 枚,盲

Created on 13 Sep 2016  路  4Comments  路  Source: JedWatson/react-select

I have Select.Async component with some options (e.g. loadOptions={this._loadOptions}). But it doesn't work well with special characters (枚,盲). It doesn't find an option which contains "盲", no matter what you type "盲" or "a". Any solutions ?

Most helpful comment

I believe there is a prop for this that is not documented. I searched in the source code and found ignoreAccents and when setting that one to false it did not replace special characters with common ones (like 氓 -> a). You can find the map in the file stripDiacritics.js. Don't know if this is the correct solution though.

All 4 comments

I believe there is a prop for this that is not documented. I searched in the source code and found ignoreAccents and when setting that one to false it did not replace special characters with common ones (like 氓 -> a). You can find the map in the file stripDiacritics.js. Don't know if this is the correct solution though.

I just encountered the same issue. Yes, setting ignoreAccents to false works.

It seems that this concerns only Async component as I'm using basic Select component and special characters are working with it just fine. I'm also using custom filterOptions-function with Select.Async so maybe it's combination of those things.

This is duplicate of #664

Thanks @markoandersson! You saved my day!

This is better documented now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pgoldweic picture pgoldweic  路  3Comments

steida picture steida  路  3Comments

mjuopperi picture mjuopperi  路  3Comments

sampatbadhe picture sampatbadhe  路  3Comments

MalcolmDwyer picture MalcolmDwyer  路  3Comments