Actually it's not open, it was your css style make it looks like it opened. Because you put them under the same parent element, and the parent element has display:flex
style, so the children element will keep its height the same as parent, this make it looks like opened. You can remove className="flex"
to see the difference.