Skip to content

Commit 0763367

Browse files
author
shuang2.zheng
committed
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.
1 parent e9c676f commit 0763367

File tree

1 file changed

+5
-1
lines changed
  • packages/runtime-dom/src

1 file changed

+5
-1
lines changed

packages/runtime-dom/src/jsx.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ export interface InputHTMLAttributes extends HTMLAttributes {
547547
checked?: Booleanish | any[] | Set<any> | undefined // for IDE v-model multi-checkbox support
548548
crossorigin?: string | undefined
549549
disabled?: Booleanish | undefined
550-
enterKeyHint?:
550+
enterkeyhint?:
551551
| 'enter'
552552
| 'done'
553553
| 'go'
@@ -556,6 +556,10 @@ export interface InputHTMLAttributes extends HTMLAttributes {
556556
| 'search'
557557
| 'send'
558558
| undefined
559+
/**
560+
* @deprecated Use `enterkeyhint` instead.
561+
*/
562+
enterKeyHint?: InputHTMLAttributes['enterkeyhint']
559563
form?: string | undefined
560564
formaction?: string | undefined
561565
formenctype?: string | undefined

0 commit comments

Comments
 (0)