Sharepoint - SharePoint Modern Experience - 'Expand Content' cannot be exited

I'm sure this will be "patched out" by Microsoft pretty quickly, but in the meantime you can have users run the following code if they get "stuck" but don't want to clear cache:

  1. Press F12 in your browser (if IE, may need to go to '...' -> More Tools -> Developer Tools)
  2. Click next to the ">" to focus into the Console and then paste the following: document.querySelectorAll("button[title='Collapse content']")[0].click()

By way of explanation, like Rogan mentioned, the button is there and works, it's just hidden.


that's strange. The command bar should not have disappeared. In fact, it should show a command to collapse the content.

enter image description here

If you don't see that, you may want to clear cookies, at least those set in the last couple of hours.


I've had the same issue and found that the only way to collapse it again is to remove any "?view_parameter_info" off the end of the URL and reload the page.

Not the easiest thing to explain to your end users when you've designed a list that expands well off-screen and requires scrolling to the right. Hope this is patched ASAP.