Accessibility · Middle · Question 70 of 75

Why can changing a list key lose keyboard focus?

Show the answer

Correct answer: React remounts the node, destroying the focused element

Explanation

A new key means a new DOM element, so focus falls to body. Keep keys stable.

Further reading

Problem with a question

Accessibility · Middle · question 70

Test yourself

Take the Accessibility · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz