Permalink
Browse files

fix(dropdown): fix condition for when position-static is applied (#1477)

Class `.position-static` should be applied only when boundary is **not** `scrollParent`
  • Loading branch information...
tmorehouse committed Dec 17, 2017
1 parent 68deee1 commit 1717edbda6f4c581111342f4fb66e06ce058021a
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/components/dropdown/dropdown.js
@@ -113,8 +113,9 @@ export default {
dropdownClasses () {
let position = ''
// Position `static` is needed to allow menu to "breakout" of the scrollParent boundaries
// when boundary is anything other than `scrollParent`
// See https://github.com/twbs/bootstrap/issues/24251#issuecomment-341413786
if (this.boundary === 'scrollParent' || !this.boundary) {
if (this.boundary !== 'scrollParent' || !this.boundary) {
position = 'position-static'
}
return [

0 comments on commit 1717edb

Please sign in to comment.