Skip to content

Commit e005b4b

Browse files
committedMar 5, 2025·
chore: add data-index to pin-input
1 parent 91289c4 commit e005b4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/machines/pin-input/src/pin-input.connect.ts

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export function connect<T extends PropTypes>(
116116
"data-disabled": dataAttr(prop("disabled")),
117117
"data-complete": dataAttr(complete),
118118
id: dom.getInputId(scope, index.toString()),
119+
"data-index": index,
119120
"data-ownedby": dom.getRootId(scope),
120121
"aria-label": translations?.inputLabel?.(index, computed("valueLength")),
121122
inputMode: prop("otp") || prop("type") === "numeric" ? "numeric" : "text",

0 commit comments

Comments
 (0)
Please sign in to comment.