Browse Source

Fix search when item contains accents

pull/6793/head
N.Zetoutou 6 years ago
committed by GitHub
parent
commit
c03bdd04cb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. 2
      dist/components/dropdown.js

2
dist/components/dropdown.js

@ -803,7 +803,9 @@ $.fn.dropdown = function(parameters) {
value
;
if(settings.match == 'both' || settings.match == 'text') {
text = String(module.get.choiceText($choice, false));
text = text.normalize('NFD').replace(/[\u0300-\u036f]/g, "");
if(text.search(beginsWithRegExp) !== -1) {
results.push(this);
return true;

Loading…
Cancel
Save