1

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 <code>"ajinkyatara"</code> in search box but unable to see it

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.

Ankur Soni
  • 5,725
  • 5
  • 50
  • 81
  • 1
    It seems like you are using some theme or modified css which is overriding the default select2 options css. You can try to go to dev tools to inspect & debug the issue yourself. Else create a simple example here that shows the issue. – palaѕн Sep 28 '17 at 13:05
  • 1
    Yeah, seems like CSS issue, it's really hard to guess without seeing it live. Perhaps, some video could help? – Styx Sep 28 '17 at 13:06
  • You are correct, I am using ADMIN LTE Theme's `modal-primary` here, which is making the text color white. – Ankur Soni Sep 28 '17 at 13:16

1 Answers1

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>
Alexandre Calvario
  • 143
  • 1
  • 1
  • 11