Topic: Components switch doesn't work inside navbar
marco_88 pro asked 6 years ago
Hello
I purchasing MDB Pro for jQuery and trying create a navbar vith some dropdown.
I made this, but on dropdown that is present inside navbar I inserted on menu item switch component.
I customized css of this switch and works fine, but doesn't click!
I try outside navbar and works correctly. Where is the problem?
Thanks.
Marco
Marta Wierzbicka staff answered 6 years ago
Hi,
could you provide your code here? I will check what is the problem.
Best,
Marta
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Tags
kisk73 pro commented 6 years ago
Hi, I also had the same problem. ".switch label input" put in ".navbar" is surrounded by "div", so erase it. e.g.try $(".navbar .switch label input").each(function(){ if($(this).parent().prop("tagName") == "DIV"){ $(this).unwrap(); } });Bartłomiej Malanowski staff commented 6 years ago
Could you please share your code with us? I'd like to see that, but I cannot recreate your issue