Why has the disabled first option the primary background whe


Topic: Why has the disabled first option the primary background when use md-Select with .dropdown-primary?

Rocks360 pro asked 6 years ago

Hello, when I use the md select with dropdown-primary class, the disabled first option gets the primary color as background color assigned. Example:
<select class="mdb-select dropdown-primary">

    <option value="" disabled selected>Choose your option</option>

    <option value="1">Option 1</option>

    <option value="2">Option 2</option>

    <option value="3">Option 3</option>

</select>

<label>Example label</label>
Because the .dropdown-primary [...] li.active has "background-color: #4285f4 !important;" and the .select-dropdown li.disabled has "background-color: transparent !important;" But it is ignored. Does anyone other have the following problem and have an fix for it? Exact jquery mdbootstrap version is use is MDB_GULP_PRO_4.5.12.ZIP

Piotr Glejzer staff answered 6 years ago

Hello, we are very sorry but this is a bug. We will fix as soon as possible. Probably it will be fixed in next release. But If a solution will be easy to change I will let you know. Have a nice day. Best, Piotr

Piotr Glejzer staff answered 6 years ago

Hi, I added some fix for that. Sorry for taking that so long. It will be fixed in next release. Here is link to snippet -- > Fix Best, Piotr
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.10
  • Device: MacBook Pro
  • Browser: Safari
  • OS: macOS
  • Provided sample code: No
  • Provided link: No