Skip to content

Commit 1104149

Browse files
committed
add attributes
1 parent d5d3c04 commit 1104149

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

attributes.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ type input = {
117117
spellcheck: boolean | "true" | "false" | "default",
118118
wrap: "hard" | "soft" | "off",
119119
autocapitalize: "on" | "off" | "sentences" | "none" | "words" | "characters",
120-
autocomplete: boolean | "on" | "off" | string,
120+
autocomplete: boolean | AutoFill,
121121
autofocus: boolean,
122122
maxlength: htmlNumber|string,
123123
minlength: htmlNumber|string,
@@ -150,7 +150,7 @@ export const htmlElementAttributes = {
150150
video: [...src, ...widthAndHeight, "autoplay", "controls", "loop", "muted", "poster", "preload", "playsinline"],
151151
textarea: [...input, "name", "value", "value:out", "value:in", "cols", "rows"],
152152
option: ["value", "selected", "disabled"],
153-
select: ["value", "required"],
153+
select: ["value", "autocomplete", "required"],
154154
dialog: ["open"],
155155
table: ["cellspacing", "cellpadding", "align", "width", "border"],
156156
meta: ["content"],
@@ -218,7 +218,8 @@ export type htmlElementAttributeValues = {
218218

219219
select: {
220220
required: boolean,
221-
value: primitive
221+
value: primitive,
222+
autocomplete: boolean | AutoFill,
222223
},
223224

224225
progress: {

0 commit comments

Comments
 (0)