diff --git a/src/components/Widget/components/Conversation/components/Sender/index.tsx b/src/components/Widget/components/Conversation/components/Sender/index.tsx index 045e28c73..f9426fef8 100644 --- a/src/components/Widget/components/Conversation/components/Sender/index.tsx +++ b/src/components/Widget/components/Conversation/components/Sender/index.tsx @@ -14,9 +14,10 @@ type Props = { sendMessage: (event: any) => void; buttonAlt: string; onTextInputChange?: (event: any) => void; + maxLength: number; } -function Sender({ sendMessage, placeholder, disabledInput, autofocus, onTextInputChange, buttonAlt }: Props) { +function Sender({ sendMessage, placeholder, disabledInput, autofocus, onTextInputChange, buttonAlt, maxLength }: Props) { const showChat = useSelector((state: GlobalState) => state.behavior.showChat); const inputRef = useRef(null); // @ts-ignore @@ -34,6 +35,7 @@ function Sender({ sendMessage, placeholder, disabledInput, autofocus, onTextInpu autoFocus={autofocus} autoComplete="off" onChange={onTextInputChange} + maxLength={maxLength} />