Closed
Description
<input autoFocus />
works on the client but not when hydrated.
That's because this used to be implemented in JS as a special case but hydrateInstance
doesn't cause a commit effect to be scheduled that can call .focus()
like finalizeChildren
does.
The question here is, should we even bother implementing this in JS anymore or should we just emit the autofocus
attribute in SSR and let the browser take care of it.