Warning: There’s an annoying bug in React 19: Controlled selects and checkboxes automatically reset upon submit. This bug is unique to these two input types. It doesn’t occur on a plain input. More: github.com/facebook/rea...
github.com[React 19] Controlled `<select>` component is subject to automatic form reset · Issue #30580 · facebook/reactThe controlled component also resets the "select" after the action is triggered. but the "input" component does not. "use client"; import { useActionState, useState } from "react"; function add() {...