Question · Vibe coding with Claude Code course · Module 4: Instagram clone

Quiz: Focus after closing the window

The test in Claude in Chrome showed that after closing the window focus lands on body. What does it mean for a person with a keyboard and how do you fix it?

Answer options

  • Nothing, focus does not matter after closing a window
  • They start from the top of the page; the fix remembers the tile in a ref and calls focus() on it after closing
  • They can no longer open any photo; the page has to be refreshed
  • The page stops scrolling; overflow has to be restored

You can check the correct answer by solving this task in the CodeWorlds game.