From e139a53200fbf3c8e63cc98aa5b5c33a8a875496 Mon Sep 17 00:00:00 2001 From: Khushal Agarwal Date: Thu, 22 Aug 2024 20:13:56 +0530 Subject: [PATCH] fix: issue closing native attachment picker icons when attach button is tapped --- package/src/components/MessageInput/AttachButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/src/components/MessageInput/AttachButton.tsx b/package/src/components/MessageInput/AttachButton.tsx index de68fa77a2..f048308080 100644 --- a/package/src/components/MessageInput/AttachButton.tsx +++ b/package/src/components/MessageInput/AttachButton.tsx @@ -54,7 +54,7 @@ const AttachButtonWithContext = < }; const attachButtonHandler = () => { - setShowAttachButtonPicker(true); + setShowAttachButtonPicker((prevShowAttachButtonPicker) => !prevShowAttachButtonPicker); }; const onPressHandler = () => {