Skip to content

Commit

Permalink
fix(onKeyStroke): make target ref nullable (#2579)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaakian committed Jan 3, 2023
1 parent 0c39d0c commit 2861468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/onKeyStroke/index.ts
Expand Up @@ -7,7 +7,7 @@ export type KeyFilter = true | string | string[] | KeyPredicate
export type KeyStrokeEventName = 'keydown' | 'keypress' | 'keyup'
export interface OnKeyStrokeOptions {
eventName?: KeyStrokeEventName
target?: MaybeComputedRef<EventTarget>
target?: MaybeComputedRef<EventTarget | null | undefined>
passive?: boolean
}

Expand Down

0 comments on commit 2861468

Please sign in to comment.