Skip to content

BCollapse with initial visibility creates a cumulative layout shift #2601

@sebbayer

Description

@sebbayer

Describe the bug

When a BCollapse has prop visible initially set to true, its contents are made visible initally only during onMounted handler. This is a performance issue because it creates a CLS.

In a nuxt environment, there seems to be no way to achieve that the contents are being made visible during SSR already.

I believe this is different behaviour from bootstrap-vue 2.x

Reproduction

https://stackblitz.com/edit/nuxt-starter-3yee8vhv?file=app.vue

Used Package Manager

npm

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions