Skip to content

Commit

Permalink
fix: update PhoneInputProps to omit "ref" in type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
omeralpi committed Nov 16, 2024
1 parent 21e8787 commit 9678987
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/ui/phone-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import { ScrollArea } from "@/components/ui/scroll-area";
import { cn } from "@/lib/utils";

type PhoneInputProps = Omit<
React.InputHTMLAttributes<HTMLInputElement>,
"onChange" | "value"
React.ComponentProps<"input">,
"onChange" | "value" | "ref"
> &
Omit<RPNInput.Props<typeof RPNInput.default>, "onChange"> & {
onChange?: (value: RPNInput.Value) => void;
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/phone-input.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { ScrollArea } from "./scroll-area";

type PhoneInputProps = Omit<
React.ComponentProps<"input">,
"onChange" | "value"
"onChange" | "value" | "ref"
> &
Omit<RPNInput.Props<typeof RPNInput.default>, "onChange"> & {
onChange?: (value: RPNInput.Value) => void;
Expand Down

0 comments on commit 9678987

Please sign in to comment.