Skip to content

content with fixed position on scroll #208

Open
@ridergoster

Description

@ridergoster

with the new major version my tooltip inside a navigationbar have a weird position on open after scrolling the window. It's because of this.

contentRef.current.style.top = `${cords.top + window.scrollY}px`;
contentRef.current.style.left = `${cords.left + window.scrollX}px`;

Version 2.0.3

Test Case

https://codesandbox.io/s/reactjs-popup-issue-position-fixed-vpeih

Expected Behavior

fixed position on content should not be change by scroll value from window

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions