Skip to content

Commit

Permalink
fix(useClipboard)!: disable read by default (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Nov 20, 2021
1 parent 34d5afe commit 77a87d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/useClipboard/index.ts
Expand Up @@ -9,7 +9,7 @@ export interface ClipboardOptions<Source> extends ConfigurableNavigator {
/**
* Enabled reading for clipboard
*
* @default true
* @default false
*/
read?: boolean

Expand Down Expand Up @@ -44,7 +44,7 @@ export function useClipboard(options: ClipboardOptions<MaybeRef<string>>): Clipb
export function useClipboard(options: ClipboardOptions<MaybeRef<string> | undefined> = {}): ClipboardReturn<boolean> {
const {
navigator = defaultNavigator,
read = true,
read = false,
source,
copiedDuring = 1500,
} = options
Expand Down

0 comments on commit 77a87d4

Please sign in to comment.