Collapsible group transition not smooth

Has anyone experienced this behavior before?
Recording 2023-06-14 114923

You can see the jumping for a split second when the pink group gets shown.

I have this set up with custom states. When the dark red group is clicked, it toggles the state “showGroup” to either yes or no.

Here are the settings of the pink group:


Is this a bug? I don’t think I’m doing anything wrong.

I’ve tested this in chrome and edge and it seems to only be a problem in Edge.