From 0763367fb0ead21d1c0d1ba5ce0bc0c0bc5b41cb Mon Sep 17 00:00:00 2001 From: "shuang2.zheng" Date: Thu, 13 Nov 2025 16:00:43 +0800 Subject: [PATCH] fix(runtime-dom): Correct the naming of the enterKeyHint property in InputHTMLAttributes Change the enterKeyHint property to the lowercase form enterkeyhint to comply with HTML standard specifications, and add a deprecation flag to prompt for migration. --- packages/runtime-dom/src/jsx.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/runtime-dom/src/jsx.ts b/packages/runtime-dom/src/jsx.ts index 3d09278a778..eb43ccb4be2 100644 --- a/packages/runtime-dom/src/jsx.ts +++ b/packages/runtime-dom/src/jsx.ts @@ -547,7 +547,7 @@ export interface InputHTMLAttributes extends HTMLAttributes { checked?: Booleanish | any[] | Set | undefined // for IDE v-model multi-checkbox support crossorigin?: string | undefined disabled?: Booleanish | undefined - enterKeyHint?: + enterkeyhint?: | 'enter' | 'done' | 'go' @@ -556,6 +556,10 @@ export interface InputHTMLAttributes extends HTMLAttributes { | 'search' | 'send' | undefined + /** + * @deprecated Use `enterkeyhint` instead. + */ + enterKeyHint?: InputHTMLAttributes['enterkeyhint'] form?: string | undefined formaction?: string | undefined formenctype?: string | undefined