Archived topic
JS conflict
4 replies · Started by Anonymous on November 27, 2015
Hi,
At the bottom of js/navigation.js is the function:
jQuery( '.dropdown-toggle' ).click ...
The class "dropdown-toggle" is a somewhat common class used in other plugins, such as DWQA, which is creating conflicts/unexpected behavior.
Could the selector be made more specific? I believe ".main-navigation .dropdown-toggle" should work just fine.
Thanks in advance!
Tough one, as the Secondary Nav uses the same snippet of code and doesn't have the .main-navigation class.
I'll find something common between the two and get it implemented into the next version :)
Thanks!
Alright, I ended up just using: nav .dropdown-toggle.
This works on all of our nav elements, and shouldn't cause issues with other plugins unless they're adding their own navigation elements.
Let me know :)
Excellent! Many thanks!
No problem! Thanks for bringing it to my attention :)
