Deleted-trigger focus fallback
Restore focus safely when the control that opened a sheet disappears during an optimistic update.
Focus survives a deleted trigger.
The opener disappears, so focus returns to a stable workspace landmark.
Trigger is present.
What stays true
- Restore target is connected
- No arbitrary timeout
- Exit completion announces settled state
Try it deliberately
- The explicit page landmark outlives the optimistic row deletion.
- If the original trigger remains connected, prefer it as the restore target.