Skip to content

Revert "ref(core): button busy state and form SubmitButton UX"#109891

Merged
natemoo-re merged 1 commit intomasterfrom
revert-109869-tkdodo/feat/de-980-submitbuttom-ux
Mar 4, 2026
Merged

Revert "ref(core): button busy state and form SubmitButton UX"#109891
natemoo-re merged 1 commit intomasterfrom
revert-109869-tkdodo/feat/de-980-submitbuttom-ux

Conversation

@natemoo-re
Copy link
Member

@natemoo-re natemoo-re commented Mar 4, 2026

Reverts #109869

Screenshot 2026-03-04 at 10 37 43 AM

@natemoo-re natemoo-re requested a review from a team as a code owner March 4, 2026 18:53
@linear
Copy link

linear bot commented Mar 4, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 4, 2026
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

return (
<form.Subscribe selector={state => state.isSubmitting}>
{isSubmitting => (
<form.Subscribe selector={state => state.isSubmitting || state.isDefaultValue}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Form state isDefaultValue property doesn't exist at form level

Medium Severity

The form.Subscribe selector accesses state.isDefaultValue, but isDefaultValue is a field-level metadata property (field.state.meta.isDefaultValue) in TanStack Form, not a form-level state property. On the FormState object, isDefaultValue is undefined, so the expression state.isSubmitting || state.isDefaultValue effectively reduces to just state.isSubmitting. The apparent intent — disabling the submit button when form values haven't changed from defaults — is silently non-functional.

Fix in Cursor Fix in Web

@natemoo-re natemoo-re merged commit ea5a376 into master Mar 4, 2026
71 of 73 checks passed
@natemoo-re natemoo-re deleted the revert-109869-tkdodo/feat/de-980-submitbuttom-ux branch March 4, 2026 19:13
TkDodo added a commit that referenced this pull request Mar 5, 2026
TkDodo added a commit that referenced this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants