Topic: code from your website
ahess free asked 5 years ago
I copied the code from your website. This is the URL https://mdbootstrap.com/docs/jquery/components/dropdowns/ and bellow is the code
<div class="btn-group">
<!-- Basic dropdown -->
<button class="btn btn-primary dropdown-toggle mr-4" type="button" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">Basic dropdown</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
<!-- Basic dropdown -->
<!--Dropdown primary-->
<div class="dropdown">
<!--Trigger-->
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">Material dropdown</button>
<!--Menu-->
<div class="dropdown-menu dropdown-primary">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div>
<!--/Dropdown primary-->
</div>
As the code is in the site, the Material dropdown button does not drop down or show the list that should be dropping once you click. The Basic one does work. I had to remove the class="dropdown" that is after line 16 <!--Dropdown primary-->
to make the dropdown to work BUT it behave just like the plain Bootstrap. I have been trying to contact you guys with no response. We bought this to use BS with material look but this is not working
Arkadiusz Idzikowski staff answered 5 years ago
This code is for jQuery version. Please use the one from our Angular documentation:
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.0.0
- Device: mac
- Browser: chrome
- OS: IOS
- Provided sample code: Yes
- Provided link: No