简体   繁体   English

Bootstrap Select Js Large 不是搜索

[英]Bootstrap Select Js Large İ not Search

im using bootstrap select on my website.我在我的网站上使用引导选择。 I have a problem, Large İ not search (when i type in lowercase) :(我有一个问题,大 İ 不搜索(当我输入小写时):(

http://jsfiddle.net/2qzv5yn1/ http://jsfiddle.net/2qzv5yn1/

I am using standard js functions.我正在使用标准的 js 函数。 So I didn't add js.所以我没有加js。

<select name="nereden" class="selectpicker show-tick form-control" data-live-search-style="startsWith" data-live-search="true" data-width="100%" data-size="5">
<option value="">{{ trans('nav.from') }}</option>
<option value="{{$istasyon->istasyonId}}-{{$istasyon->istasyonAdi}}">İstanbul</option>
<option value="{{$istasyon->istasyonId}}-{{$istasyon->istasyonAdi}}">Ankara</option>
<option value="{{$istasyon->istasyonId}}-{{$istasyon->istasyonAdi}}">Çankırı</option>
</select>

While the character İ is similar to a capital I , it's not the exact same character.虽然字符İ类似于大写的I ,但它不是完全相同的字符。 You need to set liveSearchNormalize to true to allow for accent-insensitive searching, either via您需要将liveSearchNormalize设置为true以允许对重音不敏感的搜索,通过

$('.selectpicker').selectpicker({ liveSearchNormalize: true });

or by adding data-live-search-normalize="true" to your select element.或者通过将data-live-search-normalize="true"到您的选择元素。 The liveSearchNormalize feature was expanded/improved in v1.13.4, so you'll need to use at least that version. liveSearchNormalize 功能在 v1.13.4 中得到了扩展/改进,因此您至少需要使用该版本。

See a preview of it working with v1.13.8 here https://plnkr.co/edit/kRDYg2wNyoOqFeUIOhNT?p=preview .在此处查看它与 v1.13.8 一起使用的预览https://plnkr.co/edit/kRDYg2wNyoOqFeUIOhNT?p=preview

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM