From c03bdd04cb485e52bd5e5cf4dd6d751d678b90ba Mon Sep 17 00:00:00 2001 From: "N.Zetoutou" Date: Wed, 17 Apr 2019 10:46:55 +0200 Subject: [PATCH] Fix search when item contains accents --- dist/components/dropdown.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dist/components/dropdown.js b/dist/components/dropdown.js index 2f1bfe4d3b..b24fb87ff6 100644 --- a/dist/components/dropdown.js +++ b/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;