Skip to content
Snippets Groups Projects
Unverified Commit 6c700f34 authored by Guilherme Gazzo's avatar Guilherme Gazzo Committed by GitHub
Browse files

Chore: Composer wrapper around the textarea (#27658)

parent a3b8f16f
No related branches found
Tags 6.4.8
No related merge requests found
......@@ -319,7 +319,6 @@ export const MessageBox = ({
className='rc-message-box__textarea js-input-message'
onKeyDown={handler}
onPaste={handlePaste}
is='textarea'
/>
<div ref={shadowRef} style={shadowStyle} />
<MessageComposerToolbar>
......
......@@ -3,7 +3,11 @@ import type { ComponentProps, ReactElement } from 'react';
import { forwardRef } from 'react';
const MessageComposerInput = forwardRef<HTMLInputElement, ComponentProps<typeof Box>>(
(props, ref): ReactElement => <Box minHeight='20px' rows={1} fontScale='p2' ref={ref} pi={12} mb={16} {...props} borderWidth={0} />,
(props, ref): ReactElement => (
<Box is='label' width='full' fontSize={0}>
<Box minHeight='20px' rows={1} fontScale='p2' ref={ref} pi={12} mb={16} {...props} borderWidth={0} is='textarea' />
</Box>
),
);
export default MessageComposerInput;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment