bootstrap-vue-next: BDropdown causes unhandled exception if it overflows the browser area.

Describe the bug

If the BDropdown/BNavbar overflows the available height an unhandled exception happens:

ResizeObserver loop completed with undelivered notifications.

Reproduction

Open the dropdown and see the issue on the browser console.

https://bootstra-vue-next-template-m75drpxy.stackblitz.io

Cypress error running on chrome: https://github.com/mshima/generator-jhipster/actions/runs/14642584904/job/41088421081

[e2e]   1 failing
[e2e] 
[e2e]   1) EntityCustomIdDTOMapsId e2e test
[e2e]        EntityCustomIdDTOMapsIds menu should load EntityCustomIdDTOMapsIds page:
[e2e]      Error: The following error originated from your application code, not from Cypress.
[e2e] 
[e2e]   > ResizeObserver loop completed with undelivered notifications.
[e2e] 
[e2e] When Cypress detects uncaught errors originating from your application it will automatically fail the current test.
[e2e] 
[e2e] This behavior is configurable, and you can choose to turn this off by listening to the `uncaught:exception` event.

Used Package Manager

npm

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 26 (10 by maintainers)

Most upvoted comments

@mshima then make a small cypress/vue repo that reproduces the error, we can’t track it without a reproduction.

@xvaara thanks. I confirm that using the pkg.pr.new from the linked commit fixes the issue on ci. Unfortunately https://github.com/bootstrap-vue-next/bootstrap-vue-next/pull/2425 reintroduces the issue.

@VividLemon this is the same error that is fixed for popover in #2579 it tries to calculate the size/position before the element is shown. It’s hard to debug in safari since the tools aren’t that great.

Disabling fade (<b-dropdown text="Demo" :noFade="true">) seems to workaround the issue.

Your reproduction dosn’t seem to be the right one.