mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Fixed #5127 - Textarea: modelValue should accept Nullable<string> as InputText does
This commit is contained in:
parent
eef2115bc4
commit
cd9d1977dd
1 changed files with 2 additions and 2 deletions
4
components/lib/textarea/Textarea.d.ts
vendored
4
components/lib/textarea/Textarea.d.ts
vendored
|
@ -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<string>;
|
||||
/**
|
||||
* When present, height of textarea changes as being typed.
|
||||
* @defaultValue false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue