Skip to content

Background refresh resets input text while I'm typing #5

Description

@SGudbrandsson

Problem

Sometimes while I am typing in an input field, a background refresh/poll resets the field contents. This wipes out what I was writing and is a bad UX.

Expected

If a field is focused, background updates must never overwrite its value.

Fix direction

  • Any periodic state refresh that touches input values should check document.activeElement (or equivalent) and skip the update for focused fields.
  • Alternatively, treat the input as uncontrolled while focused, reconciling only on blur.

Acceptance criteria

  • Typing in any input is never interrupted by a background refresh.
  • Focused fields retain their user-entered value until blurred or explicitly submitted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions