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

Add Diacritic support for filtering text #652

Closed
wants to merge 3 commits into from

Conversation

mikehins
Copy link

Hi, thanks for this awesome plugin !

I needed to filter options regardless of accents. So I added an option enableReplaceDiacritics.

$(document).ready(function () {
   $('#example-filter-enableReplaceDiacritics').multiselect({
        enableFiltering: true,
        enableReplaceDiacritics : true,
        enableCaseInsensitiveFiltering: true
    });
});
<select id="example-filter-enableReplaceDiacritics" multiple="multiple">
    <option value="a">Bière</option>
    <option value="b">birrë</option>
    <option value="c">Øl</option>
    <option value="d">pivə</option>
    <option value="e">Sör</option>
</select>```

@davidstutz
Copy link
Owner

Thanks this might be helpful!

@davidstutz
Copy link
Owner

Will manually use a mix of this PR and #725.

@davidstutz davidstutz closed this Jan 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants