Skip to content

Commit 6398500

Browse files
JamesBurnsidepull[bot]
authored andcommitted
Dismiss drawer on reaction click on mobile (#4380)
1 parent 4b9615e commit 6398500

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "prerelease",
3+
"area": "feature",
4+
"workstream": "Reactions",
5+
"comment": "Dismiss drawer on reaction click on mobile",
6+
"packageName": "@azure/communication-react",
7+
"email": "2684369+JamesBurnside@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}

packages/react-composites/src/composites/common/Drawer/MoreDrawer.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,13 @@ export const MoreDrawer = (props: MoreDrawerProps): JSX.Element => {
228228
drawerMenuItems.push({
229229
itemKey: 'reactions',
230230
onRendererContent: () => (
231-
<_ReactionDrawerMenuItem onReactionClick={props.onReactionClick} reactionResources={props.reactionResources} />
231+
<_ReactionDrawerMenuItem
232+
onReactionClick={async (reaction) => {
233+
props.onReactionClick?.(reaction);
234+
onLightDismiss();
235+
}}
236+
reactionResources={props.reactionResources}
237+
/>
232238
)
233239
});
234240
}

0 commit comments

Comments
 (0)