Skip to content

Commit

Permalink
fix(AsideToggler): add missing prop handling
Browse files Browse the repository at this point in the history
  • Loading branch information
xidedix committed Oct 4, 2018
1 parent a005e13 commit fb81348
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/Aside/AsideToggler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
},
display: {
type: String,
default: ''
default: 'lg'
},
mobile: {
type: Boolean,
Expand All @@ -36,6 +36,9 @@ export default {
]
}
},
mounted: function() {
this.toggle(this.defaultOpen)
},
methods: {
toggle (force) {
const [display, mobile] = [this.display, this.mobile]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`AsideToggler.vue renders correctly 1`] = `
<button
class="navbar-toggler"
display=""
display="lg"
type="button"
>
<span
Expand Down
3 changes: 3 additions & 0 deletions src/shared/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { sidebarCssClasses, asideMenuCssClasses, validBreakpoints, checkBreakpoint } from './classes'

export { sidebarCssClasses, asideMenuCssClasses, validBreakpoints, checkBreakpoint }

0 comments on commit fb81348

Please sign in to comment.