Skip to content

Commit

Permalink
fix: optional ref on input
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobparis committed Oct 12, 2024
1 parent 391973d commit 6f50d4c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions app/components/ui/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@ import * as React from 'react'
import { cn } from '#app/utils/misc.tsx'

export interface InputProps
extends React.InputHTMLAttributes<HTMLInputElement> {}
extends React.InputHTMLAttributes<HTMLInputElement> {
ref?: React.RefObject<HTMLInputElement>
}

const Input = ({
ref,
className,
type,
...props
}: InputProps & {
ref: React.RefObject<HTMLInputElement>
}) => {
const Input = ({ ref, className, type, ...props }: InputProps) => {
return (
<input
type={type}
Expand Down

0 comments on commit 6f50d4c

Please sign in to comment.