That’s not a bug. You set the content’s display value to flex, which interferes with the default display: block/ display: none behavior to show/hide the content.
If you need the content to be flex, add another div or block inside the content and set it to flex. This keeps the show/hide “logic” intact.
Best regards,
timmse
