Search text not displayed when Select2 changed to 'multiple' selection mode

梦想的初衷 提交于 2019-12-12 04:58:42

问题


To view the code base for problem statement, Kindly CLICK HERE

as I set select with id='firmName' with multiple attribute, I am unable to see the text when I type to find specific firm.

Below is the image to support my question.

I type "ajinkyatara" in search box but unable to see it the text.

How to show the search text string when select2 is in multiple selection mode.


回答1:


I found out this post and its sad that it has nothing selected as a solution, as de OP mentioned in a comment this is caused by the color of text being white, you can solve this by aplying this custom css, hope it can help anyone.

<style type="text/css">
.select2-search__field {color: black;}
</style>


来源:https://stackoverflow.com/questions/46469831/search-text-not-displayed-when-select2-changed-to-multiple-selection-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!