Permalink
Browse files

fix(navbar): breakpoint control

  • Loading branch information...
tmorehouse committed Aug 16, 2017
1 parent 32be905 commit 72cd58d0d843799e74f26cf0a95d25046384beba
Showing with 3 additions and 8 deletions.
  1. +3 −8 lib/components/navbar.js
@@ -13,13 +13,12 @@ export const props = {
type: String
},
toggleable: {
type: [Boolean, String],
type: Boolean,
default: false
},
toggleBreakpoint: {
// Deprecated: to be removed soon
type: String,
default: null
default: 'sm'
},
fixed: {
type: String
@@ -34,10 +33,6 @@ export default {
functional: true,
props,
render(h, { props, data, children }) {
let breakpoint = props.toggleBreakpoint || 'sm';
if (typeof props.toggleable === 'string') {
breakpoint = props.toggleable;
}
return h(
props.tag,
mergeData(data, {
@@ -47,7 +42,7 @@ export default {
[`bg-${props.variant}`]: Boolean(props.variant),
[`fixed-${props.fixed}`]: Boolean(props.fixed),
"sticky-top": props.sticky,
[`navbar-expand-${breakpoint}`]: Boolean(props.toggleable)
[`navbar-expand-${props.toggleBreakpoint}`]: props.toggleable
}
}),
children

0 comments on commit 72cd58d

Please sign in to comment.