Skip to content

Commit e139a53

Browse files
committed
fix: issue closing native attachment picker icons when attach button is tapped
1 parent 717bada commit e139a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/components/MessageInput/AttachButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const AttachButtonWithContext = <
5454
};
5555

5656
const attachButtonHandler = () => {
57-
setShowAttachButtonPicker(true);
57+
setShowAttachButtonPicker((prevShowAttachButtonPicker) => !prevShowAttachButtonPicker);
5858
};
5959

6060
const onPressHandler = () => {

0 commit comments

Comments
 (0)