The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: new react uses new FocusEvent
Jonathan Summers-Muirde4ccdeb7b6f
diff --git a/packages/ui/src/components/Form/FormContext.tsx b/packages/ui/src/components/Form/FormContext.tsxindex d49db95209b..108b23b8cb0 100644--- a/packages/ui/src/components/Form/FormContext.tsx+++ b/packages/ui/src/components/Form/FormContext.tsx@@ -4,7 +4,7 @@ interface ContextProps {formContextOnChange: anyvalues: anyerrors: any- handleBlur: React.FocusEventHandler | null+ handleBlur: ((e: React.FocusEvent<any, any>) => void) | nulltouched: anyfieldLevelValidation: any}@@ -25,14 +25,7 @@ const FormContext = createContext<ContextProps>({})export const FormContextProvider = (props: Provider) => {- const {- formContextOnChange,- values,- errors,- handleBlur,- touched,- fieldLevelValidation,- } = props+ const { formContextOnChange, values, errors, handleBlur, touched, fieldLevelValidation } = propsconst value = {formContextOnChange: formContextOnChange,@@ -43,18 +36,14 @@ export const FormContextProvider = (props: Provider) => {fieldLevelValidation: fieldLevelValidation,}- return (- <FormContext.Provider value={value}>{props.children}</FormContext.Provider>- )+ return <FormContext.Provider value={value}>{props.children}</FormContext.Provider>}// context helper to avoid using a consumer componentexport const useFormContext = () => {const context = useContext(FormContext)if (context === undefined) {- throw new Error(- `useFormContextOnChange must be used within a FormContextProvider.`- )+ throw new Error(`useFormContextOnChange must be used within a FormContextProvider.`)}return context}