Skip to content

Commit

Permalink
feat: Use vue Ref instead of MaybeRefOrGetter to fix downstream errors
Browse files Browse the repository at this point in the history
  • Loading branch information
l3d00m committed Dec 25, 2023
1 parent cef9cd9 commit deb7c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEventListener } from '@vueuse/core'
import { MaybeRefOrGetter, ref, toValue, nextTick } from 'vue'
import { Ref, ref, toValue, nextTick } from 'vue'

// source from https://github.com/ajomuch92/vue-enter-to-tab
// it has been modified to 1. to auto click a button if the next element is a button
Expand All @@ -14,7 +14,7 @@ export interface UseEnterToTabOptions {
type HTMLElementWithPrevent = HTMLElement & { preventEnterTab?: boolean }

export function useEnterToTab(
element: MaybeRefOrGetter<HTMLElement | null | undefined>,
element: Ref<HTMLElement | null | undefined>,
options: UseEnterToTabOptions = {},
) {
const { autoClickButton = true, initialState = true } = options
Expand Down

0 comments on commit deb7c36

Please sign in to comment.