Bootstrap-table: Accent Neutralise dont working with Filter Columns

Created on 9 Jul 2020  路  7Comments  路  Source: wenzhixin/bootstrap-table

Bootstraptable version(s) affected: 1.16 - 1.17.0

Description
Sorry for my English. The Accent Neutralize plugin when active does not allow filtering by columns with the filter columns plugin.

Regards

Bug accent-neutralise confirmed filter-control

All 7 comments

Please provide an Online Example to show your problem, thanks!

I have the same issue and can confirm accent neutral is blocking filter control to do its job

@wenzhixin @djhvscf lets consider to remove the neutralise accent extension and implement it as core feature.
Its a quite small extension which can be rewritten (much smaller), we can use the function localeCompare instead of replacing all chars.
It would be also no breaking change.

Example:

var accent = 'Jos茅';
console.log('Jose', accent.localeCompare('Jose'), 'returns 1');
console.log('Josea', accent.localeCompare('Josea'), 'returns -1');

If the extension is a overkill, we can remove it.

In my opinion its a overkill, as we just need localeCompare and some if statements to check if accent neutralise is enabled.
@wenzhixin what do you think ?

I agree with you @UtechtDustin

Was this page helpful?
0 / 5 - 0 ratings

Related issues

typo3ua picture typo3ua  路  23Comments

havok2063 picture havok2063  路  39Comments

jesussuarz picture jesussuarz  路  17Comments

loveleshsaxena picture loveleshsaxena  路  20Comments

hello-code picture hello-code  路  29Comments