Issue when using 2 dropdown


Topic: Issue when using 2 dropdown

Saud_Anjum asked 7 years ago

when using 2 dropdowns in nav.when i am clicking one of them and if i change my decision and go to another dropdown then the first opened drop down is not closing automatically when i m selecting the another dropdown.it looks not so cool

Start your code here

<mdb-navbar SideClass="navbar fixed-top navbar-expand-lg navbar-dark bg-#37474f mdb-color darken-3 scrolling-navbar" [containerInside]="true">
<logo>
<aclass="logo navbar-brand"href="#"><strong>Navbar</strong></a>
</logo>
<links>
<ulclass="navbar-nav mr-auto">
<lirouterLink=""class="nav-item active waves-light"mdbRippleRadius>
<aclass="nav-link">Home <spanclass="sr-only">(current)</span></a>
</li>
<liclass="nav-item dropdown"dropdown>
<adropdownToggletype="button"class="nav-link dropdown-toggle waves-light"mdbRippleRadius>
Academic
</a>
<divclass="dropdown-menu dropdown-primary dropdown-menu-right"role="menu">
<arouterLink="university"class="dropdown-item">
University
</a>
<aclass="dropdown-item">
principal
</a>
<aclass="dropdown-item">
Faculty
</a>
<aclass="dropdown-item">
Students
</a>
<aclass="dropdown-item">
Non Teaching Staff
</a>
<aclass="dropdown-item">
College Staff
</a>

 

</div>
</li>
<liclass="nav-item dropdown"dropdown>
<adropdownToggletype="button"class="nav-link dropdown-toggle waves-light"mdbRippleRadius>Hospital</a>
<divclass="dropdown-menu dropdown-default dropdown-menu-right"role="menu">
<aclass="dropdown-item ">hoospital Staff</a>
<aclass="dropdown-item "> Departments</a>
</div>
</li>
<lirouterLink="pearl-times"class="nav-item waves-light"mdbRippleRadius>
<aclass="nav-link">Pearl times</a>
</li>
<lirouterLink="about"class="nav-item waves-light"mdbRippleRadius>
<aclass="nav-link">About</a>
</li>
<lirouterLink="contact"class="nav-item waves-light"mdbRippleRadius>
<aclass="nav-link">Contact</a>
</li>
<liclass="nav-item waves-light"mdbRippleRadius>
<aclass="nav-link">Opinions</a>
</li>
<liclass="nav-item dropdown btn-group"dropdown>
<adropdownToggletype="button"class="nav-link dropdown-toggle waves-light"mdbRippleRadius>
Dropdown
</a>
<divclass="dropdown-menu dropdown-primary dropdown-menu-right"role="menu">
<aclass="dropdown-item"href="#">Action</a>
<aclass="dropdown-item"href="#">Another action</a>
<aclass="dropdown-item"href="#">Something else here</a>
</div>
</li>
</ul>
<ulclass="navbar-nav nav-flex-icons">
<liclass="nav-item waves-light"mdbRippleRadius>
<aclass="nav-link"><iclass="fa fa-facebook"></i></a>
</li>
<liclass="nav-item waves-light"mdbRippleRadius>
<aclass="nav-link"><iclass="fa fa-twitter"></i></a>
</li>
<liclass="nav-item waves-light"mdbRippleRadius>
<aclass="nav-link"><iclass="fa fa-instagram"></i></a>
</li>
</ul>
</links>
</mdb-navbar>

 

<div class="jumbotron jumbotron-fluid">
<divclass="container">
<h1class="h1-reponsive mb-4 mt-2 blue-text font-bold">Fluid jumbotron</h1>
<pclass="lead">This is a modified jumbotron that occupies the entire horizontal space of its parent.</p>
</div>
</div>

 


Damian Gemza staff answered 7 years ago

Hello Saud_Anjum, We know about this problem. We'll try to fix this ASAP. For a workaround, if you want to have two dropdowns and hiding it after clicking in another, you have to delete mdbRippleRadius directive from your's dropdowns. I know, that's not elegant way, but for now, we haven't got better solution. Best Regards, Damian

Saud_Anjum commented 7 years ago

quite good but its not cool at all.Thanks a lot it is working fine

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No