Skip to content

menu-button: ResizeObserver loop completed with undelivered notifications #391

@PrashantAshok

Description

@PrashantAshok

I verified there's no existing issue for this bug.

  • There are no existing issues

Current behavior

Reproducible in evo-web storybook

Add an error listener.

window.addEventListener('error', e => console.log(e));

Then click on menu button and open it using spacebar. You should see the error getting logged.

There are lot of this error getting logged in our error dashboard. So would be good to get this resolved so that it does not suppress urgent errors.

Image

Expected behavior

No error is logged while interacting with the element.

Package and version

@ebay/ebayui-core@15.12.6

Device/OS/Browser info

Chrome

Relevant code block

Most likely due to the computePosition function which internally utilizes ResizeObserver

The issue does not happen when I do not have any animation on the button

Additional context

Some more information about this issue in floating-ui

Metadata

Metadata

Assignees

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions