From d9fb043e72153f0e392876fe91f9bda4f865e65c Mon Sep 17 00:00:00 2001 From: Melloware Date: Fri, 4 Nov 2022 09:11:15 -0400 Subject: [PATCH] Fix #3573: Allow value to be set programatically (#3574) --- components/lib/inputtext/inputtext.d.ts | 8 +++++--- components/lib/inputtextarea/inputtextarea.d.ts | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/components/lib/inputtext/inputtext.d.ts b/components/lib/inputtext/inputtext.d.ts index c00b9a0325..37a14b9bb8 100644 --- a/components/lib/inputtext/inputtext.d.ts +++ b/components/lib/inputtext/inputtext.d.ts @@ -3,12 +3,14 @@ import { KeyFilterType } from '../keyfilter'; import TooltipOptions from '../tooltip/tooltipoptions'; export interface InputTextProps extends Omit, HTMLInputElement>, 'onInput' | 'ref'> { + children?: React.ReactNode; keyfilter?: KeyFilterType; - validateOnly?: boolean; tooltip?: string; tooltipOptions?: TooltipOptions; + validateOnly?: boolean; onInput?(event: React.FormEvent, validatePattern: boolean): void; - children?: React.ReactNode; } -export declare class InputText extends React.Component {} +export declare class InputText extends React.Component { + //value?: string; +} diff --git a/components/lib/inputtextarea/inputtextarea.d.ts b/components/lib/inputtextarea/inputtextarea.d.ts index 7ca305e0f5..a45f3b0d44 100644 --- a/components/lib/inputtextarea/inputtextarea.d.ts +++ b/components/lib/inputtextarea/inputtextarea.d.ts @@ -3,9 +3,11 @@ import TooltipOptions from '../tooltip/tooltipoptions'; export interface InputTextareaProps extends Omit, HTMLTextAreaElement>, 'ref'> { autoResize?: boolean; + children?: React.ReactNode; tooltip?: string; tooltipOptions?: TooltipOptions; - children?: React.ReactNode; } -export declare class InputTextarea extends React.Component {} +export declare class InputTextarea extends React.Component { + value?: string; +}