Bullet behavior when it has code snippet in the same block on Desktop app

I would like to know if there is a way for the bullet to stop hiding the code snippet that is in the same block when it is collapsed.

I wanted him to hide only the child bullet “Answer” , not the code snippet.

Is this a bug?