You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** The handler function to call when an action is performed on an attachment, examples include canceling a \/giphy command or shuffling the results. */
54
54
actionHandler?: ActionHandlerReturnType;
55
-
/** Which action should be focused on initial render, by attachment type (match by action.value) */
55
+
/**
56
+
* Which attachment action button receives focus on initial render, keyed by attachment type.
57
+
* Values must match an action's `value` (e.g. `'send'`, `'cancel'`, `'shuffle'` for giphy attachment).
58
+
* Default: `{ giphy: 'send' }`.
59
+
* To disable auto-focus (e.g. when rendering the Giphy preview above the composer so focus
60
+
* stays in the message input), pass an empty object: `attachmentActionsDefaultFocus={{}}`.
/** Custom UI component for displaying attachment actions, defaults to and accepts same props as: [AttachmentActions](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Attachment/AttachmentActions.tsx) */
0 commit comments