Skip to content

Commit

Permalink
fix(VNavigationDrawer): prevent initial transition
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Jun 2, 2022
1 parent ab633b4 commit e56de52
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -12,6 +12,7 @@ import { useBackgroundColor } from '@/composables/color'
import { useDisplay } from '@/composables/display'
import { useProxiedModel } from '@/composables/proxiedModel'
import { useRouter } from '@/composables/router'
import { useSsrBoot } from '@/composables/ssrBoot'
import { useTouch } from './touch'

// Utilities
Expand Down Expand Up @@ -75,6 +76,7 @@ export const VNavigationDrawer = defineComponent({
const router = useRouter()
const isActive = useProxiedModel(props, 'modelValue', null, v => !!v)
const isHovering = ref(false)
const { ssrBootStyles } = useSsrBoot()
const width = computed(() => {
return (props.rail && props.expandOnHover && isHovering.value)
? Number(props.width)
Expand Down Expand Up @@ -174,6 +176,7 @@ export const VNavigationDrawer = defineComponent({
backgroundColorStyles.value,
layoutItemStyles.value,
dragStyles.value,
ssrBootStyles.value,
]}
{ ...attrs }
>
Expand Down

0 comments on commit e56de52

Please sign in to comment.