Skip to content

Commit

Permalink
pass onClose prop to Modal for backdrop to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshun-01 committed Jan 27, 2024
1 parent 42e8a29 commit 008bbfb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/components/ChatInput/ChatInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,8 @@ const ChatInput = ({ scrollToBottom }) => {
)}
</Box>
{errorModal && (
<Modal css={css`padding: 1em;`}>
<Modal>
<Modal css={css`padding: 1em;`} onClose={closeErrorModal}>
<Modal.Header>
<Modal.Title>
<Icon name="report" size="1.25rem" />
Expand All @@ -549,6 +550,7 @@ const ChatInput = ({ scrollToBottom }) => {
</Button>
</Modal.Footer>
</Modal>
</Modal>
)}
</Box>
);
Expand Down

0 comments on commit 008bbfb

Please sign in to comment.