From 4f884265545d89d7a0a98fd7d56153dc92779d97 Mon Sep 17 00:00:00 2001 From: DylanDylann Date: Wed, 20 Sep 2023 18:24:35 +0700 Subject: [PATCH] fix add comment to function isEditFocused --- src/libs/ReportActionComposeFocusManager.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/ReportActionComposeFocusManager.ts b/src/libs/ReportActionComposeFocusManager.ts index 0271bd5979ec..ca4f9d77898b 100644 --- a/src/libs/ReportActionComposeFocusManager.ts +++ b/src/libs/ReportActionComposeFocusManager.ts @@ -57,6 +57,10 @@ function clear(isMainComposer = false) { function isFocused(): boolean { return !!composerRef.current?.isFocused(); } + +/** + * Exposes the current focus state of the edit message composer. + */ function isEditFocused(): boolean { return !!editComposerRef.current?.isFocused(); }