当Select2更改为“多个"选择模式时,不显示搜索文本 [英] Search text not displayed when Select2 changed to 'multiple' selection mode
问题描述
要查看问题陈述的代码库,请点击此处
To view the code base for problem statement, Kindly CLICK HERE
当我将select
和id='firmName'
设置为multiple
属性时,我键入文字来查找特定公司时看不到文本.
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.
我在搜索框中输入了"ajinkyatara",但看不到文本.
I type "ajinkyatara" in search box but unable to see it the text.
在select2处于multiple
选择模式时如何显示搜索文本字符串.
How to show the search text string when select2 is in multiple
selection mode.
推荐答案
我发现这篇文章很遗憾,它没有选择任何解决方案,因为在评论中提到的de OP,这是由于文字的颜色引起的.白色,您可以通过应用此自定义CSS来解决此问题,希望它可以对任何人有所帮助.
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>
这篇关于当Select2更改为“多个"选择模式时,不显示搜索文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!