Home Uncaught TypeError: $(...).aaDropdownMenu is not a function
Reply: 0

Uncaught TypeError: $(...).aaDropdownMenu is not a function

Esteban Echeverry
1#
Esteban Echeverry Published in 2017-11-14 21:34:36Z

I am working on a Ruby on Rails 4.2 application and using foundation 6

Sometimes as I am navigating through the app I get a turbolink error and the header breaks throwing this error which gets resolved refreshing the page, but I want to remove this bug.

application.js

$(function(){ 
    $(document).foundation(); 
});

$(document).on("turbolinks:load", function() { 
    $(document).foundation();
});

Note: This error happens when I click a link, but it happens sometimes, it seems to happen mostly when I haven't visited the page in a while.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.302699 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO