Skip to content

Commit 2943742

Browse files
committed
fix(ChatPrompt): proxy disabled prop
Resolves #5300
1 parent 6485d21 commit 2943742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/components/ChatPrompt.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { ComponentConfig } from '../types/tv'
66
77
type ChatPrompt = ComponentConfig<typeof theme, AppConfig, 'chatPrompt'>
88
9-
export interface ChatPromptProps extends /** @vue-ignore */ Pick<TextareaProps, 'autofocusDelay' | 'autoresizeDelay' | 'maxrows' | 'icon' | 'avatar' | 'loading' | 'loadingIcon'> {
9+
export interface ChatPromptProps extends /** @vue-ignore */ Pick<TextareaProps, 'autofocusDelay' | 'autoresizeDelay' | 'maxrows' | 'icon' | 'avatar' | 'loading' | 'loadingIcon' | 'disabled'> {
1010
/**
1111
* The element or component this component should render as.
1212
* @defaultValue 'form'
@@ -105,7 +105,7 @@ defineExpose({
105105
ref="textarea"
106106
v-model="model"
107107
:placeholder="placeholder || t('chatPrompt.placeholder')"
108-
:disabled="Boolean(error)"
108+
:disabled="Boolean(error) || disabled"
109109
variant="none"
110110
v-bind="{ ...textareaProps, ...$attrs }"
111111
:ui="transformUI(omit(ui, ['root', 'body', 'header', 'footer']), props.ui)"

0 commit comments

Comments
 (0)