From be4be6c80fd886738a902a33fca69f7e43eaa429 Mon Sep 17 00:00:00 2001 From: Ryan Christian <33403762+rschristian@users.noreply.github.com> Date: Fri, 29 Nov 2024 20:15:07 -0600 Subject: [PATCH 1/3] fix: Add `defaultValue` property to textareas --- src/jsx.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jsx.d.ts b/src/jsx.d.ts index 0c1afa2a60..250407e284 100644 --- a/src/jsx.d.ts +++ b/src/jsx.d.ts @@ -2060,6 +2060,7 @@ export namespace JSXInternal { autocomplete?: Signalish; autoComplete?: Signalish; cols?: Signalish; + defaultValue?: Signalish; dirName?: Signalish; disabled?: Signalish; form?: Signalish; From 3570ac200a4109a2cdc76f995ea2925a7f385997 Mon Sep 17 00:00:00 2001 From: Ryan Christian <33403762+rschristian@users.noreply.github.com> Date: Fri, 29 Nov 2024 20:32:45 -0600 Subject: [PATCH 2/3] fix: Add `defaultValue` prop to selects --- src/jsx.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jsx.d.ts b/src/jsx.d.ts index 250407e284..90fc406879 100644 --- a/src/jsx.d.ts +++ b/src/jsx.d.ts @@ -1997,6 +1997,7 @@ export namespace JSXInternal { extends HTMLAttributes { autocomplete?: Signalish; autoComplete?: Signalish; + defaultValue?: Signalish; disabled?: Signalish; form?: Signalish; multiple?: Signalish; From 7097d4f691535d6ac6e022336ba96bbc5f1e565d Mon Sep 17 00:00:00 2001 From: Ryan Christian <33403762+rschristian@users.noreply.github.com> Date: Fri, 29 Nov 2024 20:36:55 -0600 Subject: [PATCH 3/3] fix: Expand `defaultValue` input prop to accept numbers --- src/jsx.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jsx.d.ts b/src/jsx.d.ts index 90fc406879..766d079bff 100644 --- a/src/jsx.d.ts +++ b/src/jsx.d.ts @@ -1755,7 +1755,7 @@ export namespace JSXInternal { capture?: Signalish<'user' | 'environment' | undefined>; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute checked?: Signalish; defaultChecked?: Signalish; - defaultValue?: Signalish; + defaultValue?: Signalish; disabled?: Signalish; enterKeyHint?: Signalish< | 'enter'