Giter Site home page Giter Site logo

Comments (12)

clemens7haar avatar clemens7haar commented on July 17, 2024

Thanks for sharing the code! It's working for me! 👍

from bootstrap-hover-dropdown.

revolutionaries avatar revolutionaries commented on July 17, 2024

This has solved issues for me as well. Thanks for posting your fix.

from bootstrap-hover-dropdown.

CWSpear avatar CWSpear commented on July 17, 2024

I don't understand... what element do you have that's triggering the hover? I didn't see the attributes to trigger it. I mean, with just that markup, it shouldn't work at all.

from bootstrap-hover-dropdown.

revolutionaries avatar revolutionaries commented on July 17, 2024

Hi - I assume @aamjsadiq is referring to code within a Nav <li>, I have a similar scenario and his fix solved the intermittent hover issues for me.

from bootstrap-hover-dropdown.

aamjsadiq avatar aamjsadiq commented on July 17, 2024

Hi @CWSpear ,

Sorry for posting a dummy code.

The Actual code looks somewhat similar to below.

<a href="#" data-toggle="dropdown" data-delay="10" data-hover="dropdown" data-close-others="true" class="main">
  <span class="icon-home"></span>
   Text For Link 
</a>

The issue happens when your mouse hover target is actually the span , as per existing code it checks whether the target is <a> , but the fix checks for any child elements inside the<a> as well.

from bootstrap-hover-dropdown.

joshudev avatar joshudev commented on July 17, 2024

+1

from bootstrap-hover-dropdown.

GhostLtd avatar GhostLtd commented on July 17, 2024

We also needed this tweak, thanks!

from bootstrap-hover-dropdown.

orion3dgames avatar orion3dgames commented on July 17, 2024

Exactly same issue, and this worked fine. Thanks.

from bootstrap-hover-dropdown.

R-G-B avatar R-G-B commented on July 17, 2024

+1
it has to be in the main branch

from bootstrap-hover-dropdown.

holtkamp avatar holtkamp commented on July 17, 2024

@aamjsadiq can you provide a PR for this making it easier for @CWSpear to adopt it?

from bootstrap-hover-dropdown.

mathisvester avatar mathisvester commented on July 17, 2024

@aamjsadiq thank you for this patch.

Why is this issue still open?

from bootstrap-hover-dropdown.

holtkamp avatar holtkamp commented on July 17, 2024

I guess a Pull Request would make it easier for the maintainer to merge...

from bootstrap-hover-dropdown.

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.