Git Product home page Git Product logo

Comments (5)

drewclauson avatar drewclauson commented on May 11, 2024

Are you loading bootstrap.js? I was doing that and had the same problem. Removed bootstrap.js from my HTML HEAD and it was fixed.

from ember-bootstrap.

haldiggs avatar haldiggs commented on May 11, 2024

hmm I am. BUT... my Ember app is only part of a larger app (shell) which needs bootstrap.js as well. This is my biggest complaint with Ember. The constant struggle :-)

I thought this add-on would allow my own bootstrap versions (fonts, themes etc.). I used the switches to turn off the bootstrap...

'ember-bootstrap': {
    'importBootstrapCSS': false,
    'importBootstrapFont': false
}

from ember-bootstrap.

haldiggs avatar haldiggs commented on May 11, 2024

I didn't notice the additional bootstrap had been added to the bower file. hmmm. I think the add-on should only do that, be an add-on. Not control the bootstrap versions. I wonder how I can fix this.

from ember-bootstrap.

simonihmig avatar simonihmig commented on May 11, 2024

You can control the bootstrap versions using your bower.json. And btw, that's what most addons are used for, including third party assets, so this is perfectly ok.

ember-bootstrap does not rely on the original bootstrap.js, it uses native ember components for all the JavaScript functionality. That's what it is made for. In fact if you exclude the other bootstrap imports like you did, absolutely nothing from the bower installed bootstrap is included in your ember app. However if you include bootrstrap.js by yourself, which adds its own JS functionality on existing ember component controlled DOM elements, thinks go wrong. No way around this!

from ember-bootstrap.

bitsoflogic avatar bitsoflogic commented on May 11, 2024

Thanks for the back-n-forth on this. I was able to resolve the problem after reading this thread.

My solution was to head over to getbootstrap.com and customize a bootstrap.min.js file. In my case, I unchecked all Common CSS (which deselected a few components), then I unchecked JavaScript components: Dropdown and the jQuery component Dropdown.

I believe unchecking both Dropdowns and compiling it were the two critical steps. Bootstrap 3 for me.

All my other addons are now working great with this one.

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.