Ng2-select: [email protected] breaks dropdown css

Created on 18 Jan 2017  路  9Comments  路  Source: valor-software/ng2-select

Just a warning that the 4.0.0 alpha release for bootstrap 4 breaks the drop down css.

You can reproduce error with

npm i bootstrap@next --save 

or

npm i [email protected] --save

Most helpful comment

It looks like they just switched 'open' to 'show' on the dropdown parent. A quick fix would be adding this as custom CSS to your project.

.open {
  > .dropdown-menu {
    display: block;
  }
  > a {
    outline: 0;
  }
}

I'll try to put together a pull request for it. I would just add 'show' to the select component template, though I need to check to confirm that.

All 9 comments

+1

what is the solution?

I locked my dependency at a compatible version for now... I haven't seen any solutions. @anvesh48

+1

anyone got a fix for this ? desperately need the select to work ;)

Hi, I wonder that when will you solve ng2-select problem with bootstrap alpha.6

It looks like they just switched 'open' to 'show' on the dropdown parent. A quick fix would be adding this as custom CSS to your project.

.open {
  > .dropdown-menu {
    display: block;
  }
  > a {
    outline: 0;
  }
}

I'll try to put together a pull request for it. I would just add 'show' to the select component template, though I need to check to confirm that.

Another temporary fix is:

  <script src="https://v4-alpha.getbootstrap.com/dist/js/bootstrap.min.js"></script>

They have the correct javascript already on their demo page.

Work by supporting Bootstrap 4 was planned: https://github.com/optimistex/ng2-select-ex/issues/5

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sharok picture sharok  路  4Comments

Cadenei picture Cadenei  路  4Comments

TheBurgerShot picture TheBurgerShot  路  4Comments

fdu-axiometrics picture fdu-axiometrics  路  5Comments

rkralston picture rkralston  路  3Comments