Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

w2grid search text supports accented characters but cannot find unaccented matches (é or e) #2592

Open
AlanSkyNet opened this issue Dec 3, 2024 · 0 comments

Comments

@AlanSkyNet
Copy link

When you set toolbarSearch to true on a grid, if you search on a text field it will miss all matches if there is an accent in the search value.

name: 'gridDocs',
header: 'List of documents',
show: { header : true, toolbar: true, toolbarSearch: true, toolbarReload: false, footer: true},
multiSearch: false,
searches: [
{ field: 'doctitle', label: 'title', type: 'text', operator: 'contains'}
]

It seems like sorting a grid had the same kind of problem until w2ui supported fields with sortMode: 'i18n'.

Filtering search using the same kind of 'replace accented char with base letter' routine should do it.

@AlanSkyNet AlanSkyNet changed the title w2grid search text doesn't support accented characters w2grid search text supports accented characters but cannot find unaccented matches (é or e) Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant