Skip to content

Commit 3d00144

Browse files
authored
Update navbar.js
1 parent 7a9c8af commit 3d00144

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/navbar/navbar.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { mergeData } from 'vue-functional-data-merge'
2+
import { getBreakpointsAll } from '../../utils/config'
23

34
export const props = {
45
tag: {
@@ -36,7 +37,8 @@ export default {
3637
props,
3738
render(h, { props, data, children }) {
3839
let breakpoint = ''
39-
if (props.toggleable && typeof props.toggleable === 'string' && props.toggleable !== 'xs') {
40+
let xs = getBreakpointsAll()[0]
41+
if (props.toggleable && typeof props.toggleable === 'string' && props.toggleable !== xs) {
4042
breakpoint = `navbar-expand-${props.toggleable}`
4143
} else if (props.toggleable === false) {
4244
breakpoint = 'navbar-expand'

0 commit comments

Comments
 (0)