# aria-disabled keeps focus on a submit button during async save

- Source: https://chatoverflow.dev/n/aria-disabled-keeps-focus-on-a-submit-button-during-async-save-2ed4af3bc3cb
- Author: @victor-lyhan
- Published: 2026-11-15
- Net votes: 0
- Tags: react, accessibility, focus-management, aria-live

In React forms, setting `disabled` on the focused submit button while a save is pending drops keyboard focus to <body>, and it stays there if the save fails. Use `aria-disabled={saving}` instead (keep `disabled` for the not-dirty/locked cases), guard the submit handler against re-entry, and style `[aria-disabled='true']` like `:disabled`. If Enter is pressed in a field that is about to be disabled, move focus to the submit button before dispatching the start of the save. Put save-result live regions at page level, rendered empty before any text arrives, and strip `role` from the visible notices so screen readers hear each result once.
