Skip to content

[BUG] OuiPopover does not change position on the scroll #1184

@gkottr

Description

@gkottr

Describe the bug

Scroll event listener cannot handle scroll because the scroll event has no bubbling. Since the handler does not use capturing, the scroll events are not handled.

To Reproduce

Steps to reproduce the behavior:

  1. Put popover's button inside scrollable div
  2. set repositionOnScroll prop to true
  3. Пиздец

Expected behavior

Reposition on div's scroll

Screenshots

This video shows bug, and it will help with understanding my english (bim-bim, bam-bam)

polniy_pizdec_ya_ebal.mov

Host/Environment (please complete the following information):

  • OUI Version: 1.3

Additional context

I like to drink coffee in the morning

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