Code Monkey home page Code Monkey logo

Comments (3)

drewclauson avatar drewclauson commented on May 21, 2024

FYI, I confirmed by setting the data-toggle="dropdown" to a blank string in the code that it now does not require a second click to open.

{{#bs-dropdown-button class='btn-primary btn-xs' data-toggle=''}}
     {{fa-icon 'cog'}} <span class="caret"></span>
{{/bs-dropdown-button}}

from ember-bootstrap.

simonihmig avatar simonihmig commented on May 21, 2024

I cannot see a problem. There is a test app in the addon's repository, that works as expected: https://github.com/kaliber5/ember-bootstrap/blob/master/tests/dummy/app/templates/dropdown.hbs. Also the tests should cover this, so only a single click is needed.

The data-toggle attribute is not evaluated anywhere in ember-bootstrap, it's just there to emulate the expected markup. Is it possible that some other JS library you have included, maybe even the original bootstrap.js (that should not be used when using ember-bootstrap), is interfering here?

from ember-bootstrap.

drewclauson avatar drewclauson commented on May 21, 2024

Yep, you're exactly right. I was using bootstrap.js before I added this addon. Thanks for the response and I'm sorry for the confusion - I see the note in the readme now where it says no use of bootstrap.js...

from ember-bootstrap.

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.