mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05:06 +03:00
## Problem When users have enabled a SMS hook, they can't update the TOPT test values anymore. This is because `formik` sent disabled inputs values in the form payload while `react-hook-form` correctly does not. ## Solution Make the inputs read only instead of disabled ## How to test - Enable SMS auth - Add a SMS hook - Update the SMS auth settings <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Authentication provider form fields now use read-only mode instead of being disabled, preserving focus and interaction while preventing edits across text, secret, multiline, numeric, select, boolean, and datetime inputs. * A new optional read-only prop was added to form fields for consistent behavior. * **Fixes** * Initial form values recalculation was corrected so they update reliably when the selected provider changes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->