From cd9d1977dd27755667400f497bf45360dc2cf08a Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 24 Jan 2024 11:31:50 +0300 Subject: [PATCH 1/2] 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 From b385d64f9137a63f20fe085082a7dfbd2ff42941 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Wed, 24 Jan 2024 08:32:51 +0000 Subject: [PATCH 2/2] Update API doc --- doc/common/apidoc/index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/common/apidoc/index.json b/doc/common/apidoc/index.json index 9854bbea8..7373c50af 100644 --- a/doc/common/apidoc/index.json +++ b/doc/common/apidoc/index.json @@ -51278,7 +51278,7 @@ "name": "modelValue", "optional": true, "readonly": false, - "type": "string", + "type": "Nullable", "default": "", "description": "Value of the component." },