React-select: Select.Async replaces german letters

Created on 12 Dec 2015  路  6Comments  路  Source: JedWatson/react-select

When I type german letters like 盲, 枚, 眉 and 脽 they are replaced by a, o, u and s. This behavoir leads to wrong search results.

Most helpful comment

There's a prop called ignoreAccents you can set to false to negate this behavior. See https://github.com/JedWatson/react-select/blob/master/src/Async.js#L43. @JedWatson want me to add some docs around this?

All 6 comments

There's a prop called ignoreAccents you can set to false to negate this behavior. See https://github.com/JedWatson/react-select/blob/master/src/Async.js#L43. @JedWatson want me to add some docs around this?

Works :thumbsup:
Thank you.

I'll leave this one open for Jed.

That would be great, thanks @StevenLangbroek!

I wonder if stripping the diacritics is a good default behavior when querying remote data sources.

IMO, Async should have filterOption={()=>true}. The filtering should be done by the remote endpoint.

In hindsight I don't think these props should have defaulted to {true}, but I don't want to push a breaking change at the moment to update that. The props are now more clearly called out in the documentation, which should make it easier for users to understand what's going on and how to manage the behaviour.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juliensnz picture juliensnz  路  3Comments

steida picture steida  路  3Comments

Meesam picture Meesam  路  3Comments

MindRave picture MindRave  路  3Comments

pashap picture pashap  路  3Comments