I assume you need to click the main editor switcher in the top-center of the screen (2D | 3D | Script | AssetLib)
(And, yes, this feels like a 3.5 editor bug).
*** UPDATE ***
Ah, wait, this isn't a bug. In 3.5, it's controlled by:
Editor Settings | Text Editor | Navigation | Stay in script editor on node selected