Headings Unfold when pressing Enter

Steps to reproduce

Pressing Enter at the end of folded heading unfolds the heading instead of creating a new line below it.

Carnac_lpQSv2Uwep

Expected result

I’d like to be able to create Heading 2 without unfolding heading 1. This becomes annoying for large documents.