From 33d3c70b9982324f5497ba5c4dd57679960a9324 Mon Sep 17 00:00:00 2001 From: denis Date: Mon, 20 Mar 2023 22:54:46 -0400 Subject: [PATCH] Fix ref in react TextInput Fix ref in react TextInput --- stubs/inertia-react/resources/js/Components/TextInput.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/inertia-react/resources/js/Components/TextInput.jsx b/stubs/inertia-react/resources/js/Components/TextInput.jsx index 7428f501d..c903d148d 100644 --- a/stubs/inertia-react/resources/js/Components/TextInput.jsx +++ b/stubs/inertia-react/resources/js/Components/TextInput.jsx @@ -17,7 +17,7 @@ export default forwardRef(function TextInput({ type = 'text', className = '', is 'border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 focus:border-indigo-500 dark:focus:border-indigo-600 focus:ring-indigo-500 dark:focus:ring-indigo-600 rounded-md shadow-sm ' + className } - ref={localRef} + ref={input} /> ); });