Skip to content

Commit 5654881

Browse files
authored
Widen inputRef type for CodeInputProps for React 19 ref types
React 19 alters how refs are calculated, so allowing a null ref value is needed to be explicitly allowed now.
1 parent 77273d0 commit 5654881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/rci/src/components/CodeInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { RenderSegmentFn } from '../types/RenderSegmentFn'
44
import * as RCI from './RCI'
55

66
export type CodeInputProps = RCI.InputProps & {
7-
inputRef: React.RefObject<HTMLInputElement>
7+
inputRef: React.RefObject<HTMLInputElement | null>
88
renderSegment: RenderSegmentFn
99

1010
length?: number

0 commit comments

Comments
 (0)