File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export type MessageInputProps = {
3838 */
3939 additionalTextareaProps ?: Omit <
4040 React . TextareaHTMLAttributes < HTMLTextAreaElement > ,
41- 'defaultValue' | 'style' | 'disabled'
41+ 'defaultValue' | 'style' | 'disabled' | 'value'
4242 > ;
4343 /**
4444 * When enabled, recorded messages won’t be sent immediately.
Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ const configStateSelector = (state: MessageComposerConfig) => ({
4747const defaultShouldSubmit = ( event : React . KeyboardEvent < HTMLTextAreaElement > ) =>
4848 event . key === 'Enter' && ! event . shiftKey && ! event . nativeEvent . isComposing ;
4949
50- export type TextComposerProps = Omit <
50+ export type TextareaComposerProps = Omit <
5151 TextareaHTMLAttributes < HTMLTextAreaElement > ,
52- 'style' | 'defaultValue' | 'disabled'
52+ 'style' | 'defaultValue' | 'disabled' | 'value'
5353> & {
5454 closeSuggestionsOnClickOutside ?: boolean ;
5555 containerClassName ?: string ;
@@ -74,7 +74,7 @@ export const TextareaComposer = ({
7474 placeholder : placeholderProp ,
7575 shouldSubmit : shouldSubmitProp ,
7676 ...restTextareaProps
77- } : TextComposerProps ) => {
77+ } : TextareaComposerProps ) => {
7878 const { t } = useTranslationContext ( ) ;
7979 const { AutocompleteSuggestionList = DefaultSuggestionList } = useComponentContext ( ) ;
8080 const {
You can’t perform that action at this time.
0 commit comments