#3238·inertia

Form component fails to detect some inputs change (isDirty)

Author: axelvaindalCreated Aug 30, 2026Updated Aug 30, 2026
Labelsreact

@inertiajs/react Version

3.7.0

Backend stack (optional)

No response

Describe the problem

When using React-Select or Radix UI components (Switch) inside a <Form>, it does not automatically detect the change of the hidden input which leads to isDirty never being triggered.

For the Switch, it feels like the full component is remounted so perhaps isDirty loses that state because when it remounts it kinda reset the form state to the new state of the input so isDirty is never triggered, but unsure.

We had similar issue with unmounted step in multi-step flow, where if the step is not mounted, the fields that are in it are never inside the form as well.

Steps to reproduce

  • Install RadixUI switch or React Select
  • Build a form using the <Form> component and put inside either a simple Select or toggle as well as a button being disabled as long as the form is not dirty
  • Assign a value to your component, isDirty never becomes true
Image