Giter Club home page Giter Club logo

Comments (9)

th3fallen avatar th3fallen commented on September 2, 2024

im trying to do the same thing did you ever find a solution @nitrammit ?

from dropit.

 avatar commented on September 2, 2024

Sorry, mate. I had no luck. I ended up building my own CSS dropdowns instead.

from dropit.

th3fallen avatar th3fallen commented on September 2, 2024

@nitrammit thanks anyways i asked @gilbitron on Twitter but i think he's got to much going on... oh well back to my search.

from dropit.

Twanneman avatar Twanneman commented on September 2, 2024

add this code in the afterShow function :
afterShow: function(){
$('ul#menu').on( "mouseleave", function() {
$('.dropit-open').removeClass('dropit-open').find('.dropit-submenu').hide();
});
}

from dropit.

tmrfcb avatar tmrfcb commented on September 2, 2024

// add this code to hide sub menu when you hover the others first level anchor

                $('.menu_tab > ul > li > a').on('hover', function(){
                    settings.beforeHide.call(this);
                    $('.dropit-open').removeClass('dropit-open').find('.dropit-submenu').hide();
                    settings.afterHide.call(this);
                });

//and this code to hide sub menu when you leave the ul

                $('.menu_tab').mouseleave(function(){
                    settings.beforeHide.call(this);
                    $('.dropit-open').removeClass('dropit-open').find('.dropit-submenu').hide();
                    settings.afterHide.call(this);
                });

//that's work for me

from dropit.

tylerpenney avatar tylerpenney commented on September 2, 2024

I used .mouseleave also it works great 👍

                // Close if outside of area
                $(".dropit").mouseleave(function () {
                    settings.beforeHide.call(this);
                    $('.dropit-open').removeClass('dropit-open').find('.dropit-submenu').hide();
                    settings.afterHide.call(this);
                });

from dropit.

gilbitron avatar gilbitron commented on September 2, 2024

This is fixed in v1.1.0.

from dropit.

tylerpenney avatar tylerpenney commented on September 2, 2024

I fixed in my fork too. Great job!

Tyler Penney
(559) 834-8282
millerpenney.com

On Thu, May 8, 2014 at 8:00 AM, Gilbert Pellegrom
[email protected]:

Closed #3 #3.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#event-119166142
.

from dropit.

jordanneenan avatar jordanneenan commented on September 2, 2024

Just a heads up @gilbitron - I still had this issue using 1.1.0. @tylerpenney's fork worked.

Thanks for the plugin.

from dropit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.