mdb-select click twice to open options


Topic: mdb-select click twice to open options

Tomas Tenaglia asked 3 years ago

Good I have my next query, I have a SELECT, where to open it in a form, I have to click on TWICE if not open, any possible solution? copy and paste it like this on the page. I leave a link with my code.

<span>Subject</span>
        <select class="mdb-select">
            <option value="" disabled>Choose option</option>
            <option value="1" selected>Feedback</option>
            <option value="2">Report a bug</option>
            <option value="3">Feature request</option>
            <option value="4">Feature request</option>
        </select>

<script type="text/javascript">
// Material Select Initialization
$(document).ready(function() {
$('.mdb-select').materialSelect();
});
</script>

MDBootstrap staff pro premium answered 3 years ago

Hi Tomas,

I tested your code in our snippet environment and I must assure you that this implementation is correct. As you can see in the example, everything works fine. There could be a problem with your mdb package implementation. To be sure you have everything going without issues with mdb package make sure you did everything correctly according to our tutorials

If you need any help I am here for you.

Best Regards, Piotr


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: web
  • Browser: google chrome
  • OS: windows10
  • Provided sample code: No
  • Provided link: No
Tags