Skip to content

Commit 58da985

Browse files
committed
typescript
1 parent 07812f4 commit 58da985

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/dev/s2-docs/pages/react-aria/TextField.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ TextField can be customized to create an OTP (one-time password) input by hiding
154154

155155
function OTPBoxes({length, focused}) {
156156
let context = useContext(InputContext);
157-
let value = context?.value ?? '';
157+
let value = String(context?.value ?? '');
158158

159159
return (
160160
<div style={{display: 'flex', gap: '6px', pointerEvents: 'none'}}>
@@ -218,7 +218,7 @@ TextField can be customized to create an OTP (one-time password) input by hiding
218218

219219
function OTPBoxes({length, focused}) {
220220
let context = useContext(InputContext);
221-
let value = context?.value ?? '';
221+
let value = String(context?.value ?? '');
222222

223223
return (
224224
<div className="flex gap-1.5 pointer-events-none">

0 commit comments

Comments
 (0)