From cd9d1977dd27755667400f497bf45360dc2cf08a Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 24 Jan 2024 11:31:50 +0300 Subject: [PATCH] Fixed #5127 - Textarea: modelValue should accept Nullable as InputText does --- components/lib/textarea/Textarea.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/textarea/Textarea.d.ts b/components/lib/textarea/Textarea.d.ts index 24eee9126..d68e6bcd3 100755 --- a/components/lib/textarea/Textarea.d.ts +++ b/components/lib/textarea/Textarea.d.ts @@ -10,7 +10,7 @@ import { TextareaHTMLAttributes } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { PassThroughOptions } from '../passthrough'; -import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers'; +import { ClassComponent, GlobalComponentConstructor, Nullable, PassThrough } from '../ts-helpers'; export declare type TextareaPassThroughOptionType = TextareaPassThroughAttributes | ((options: TextareaPassThroughMethodOptions) => TextareaPassThroughAttributes | string) | string | null | undefined; @@ -91,7 +91,7 @@ export interface TextareaProps extends TextareaHTMLAttributes { /** * Value of the component. */ - modelValue?: string | undefined; + modelValue?: Nullable; /** * When present, height of textarea changes as being typed. * @defaultValue false