Fixed #5127 - Textarea: modelValue should accept Nullable<string> as InputText does

pull/5161/head
tugcekucukoglu 2024-01-24 11:31:50 +03:00
parent eef2115bc4
commit cd9d1977dd
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
import { TextareaHTMLAttributes } from 'vue'; import { TextareaHTMLAttributes } from 'vue';
import { ComponentHooks } from '../basecomponent'; import { ComponentHooks } from '../basecomponent';
import { PassThroughOptions } from '../passthrough'; 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; 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. * Value of the component.
*/ */
modelValue?: string | undefined; modelValue?: Nullable<string>;
/** /**
* When present, height of textarea changes as being typed. * When present, height of textarea changes as being typed.
* @defaultValue false * @defaultValue false