Skip to content

Bug: Enterprise SSO settings form logs React uncontrolled→controlled warnings (Select + Switch initialized undefined) #2095

Description

@yannickmonney

Area / route
/dashboard/{org}/settings/enterprise-ssoapp/features/settings/enterprise-sso/components/enterprise-sso-form.tsx (new feature, commit b418075).

Steps to reproduce

  1. Open Settings → Enterprise SSO with the console open.
  2. Watch the page load.

Expected
No controlled/uncontrolled warnings; fields initialized with defined defaults so state does not churn (no risk of reset on first interaction).

Actual
On load, 5 console warnings fire: "Select/Switch is changing from uncontrolled to controlled". The data useMemo returns undefined while config loads, so the Select/Switch fields mount with value/checked undefined then hydrate.

Evidence

  • enterprise-sso-form.tsx:266-267 (data useMemo returns undefined while loading); Select value={field.value} at :558,:749 (2); Switch checked={field.value} at :672,:770,:781 (3) = 5 warnings (matches observed). Screenshot settings/enterprise-sso-controlled-warning.png.

Notes
Live browser finding (B3); NEW feature, NOT in the dedup baseline. Fix: provide defined default values (empty strings for Selects, false for Switches) before config resolves so the controls are controlled from first render. Same new form is the subject of the protocol-switch validation gap [08].


Filed by an automated manual-review pass (live browser QA + a 25-agent code-grounded audit, each finding adversarially verified). Deduped against open issues (incl. #1972#1999, settings/forms epic #1941#1966, audit cluster #1842#1846) and recently-closed issues.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions