From 9678987f77a4fb38eb711e75dec0a2ac14de6572 Mon Sep 17 00:00:00 2001 From: omeralpi Date: Sat, 16 Nov 2024 20:29:26 +0300 Subject: [PATCH] fix: update PhoneInputProps to omit "ref" in type definition --- components/ui/phone-input.tsx | 4 ++-- content/snippets/phone-input.mdx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ui/phone-input.tsx b/components/ui/phone-input.tsx index 05aa88f..b92ddf2 100644 --- a/components/ui/phone-input.tsx +++ b/components/ui/phone-input.tsx @@ -26,8 +26,8 @@ import { ScrollArea } from "@/components/ui/scroll-area"; import { cn } from "@/lib/utils"; type PhoneInputProps = Omit< - React.InputHTMLAttributes, - "onChange" | "value" + React.ComponentProps<"input">, + "onChange" | "value" | "ref" > & Omit, "onChange"> & { onChange?: (value: RPNInput.Value) => void; diff --git a/content/snippets/phone-input.mdx b/content/snippets/phone-input.mdx index eea9684..3746110 100644 --- a/content/snippets/phone-input.mdx +++ b/content/snippets/phone-input.mdx @@ -33,7 +33,7 @@ import { ScrollArea } from "./scroll-area"; type PhoneInputProps = Omit< React.ComponentProps<"input">, - "onChange" | "value" + "onChange" | "value" | "ref" > & Omit, "onChange"> & { onChange?: (value: RPNInput.Value) => void;