From 488b2ed9688742fdd3ecc3090ab12436b463f2e8 Mon Sep 17 00:00:00 2001 From: Filip Sauer Date: Thu, 14 Sep 2023 01:11:10 +0200 Subject: [PATCH] docs(file-upload): isFocused shows whether the user is focused on the dropzone (not root) element --- packages/docs/api.json | 2 +- packages/machines/file-upload/src/file-upload.types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/docs/api.json b/packages/docs/api.json index 98a04469a5..1a14d8fd4a 100644 --- a/packages/docs/api.json +++ b/packages/docs/api.json @@ -1096,7 +1096,7 @@ }, "isFocused": { "type": "boolean", - "description": "Whether the user is focused on the root element" + "description": "Whether the user is focused on the dropzone element" }, "open": { "type": "() => void", diff --git a/packages/machines/file-upload/src/file-upload.types.ts b/packages/machines/file-upload/src/file-upload.types.ts index 0513cde4a7..45e7e91adc 100644 --- a/packages/machines/file-upload/src/file-upload.types.ts +++ b/packages/machines/file-upload/src/file-upload.types.ts @@ -110,7 +110,7 @@ export interface MachineApi { */ isDragging: boolean /** - * Whether the user is focused on the root element + * Whether the user is focused on the dropzone element */ isFocused: boolean /**