SpinTheMic
Pro

Interview practice question

Focus is lost after deleting a list item

Frontend Engineering · Accessibility · Intermediate

When users delete an item from a list with the keyboard, focus jumps to the top of the page. How would you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Removed element took focus with it.
  • Move focus to next item, previous, or list heading.
  • Announce deletion (live region).
  • Offer undo.
  • Test with keyboard and screen reader.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics