Popper Logo
Popper Logo
  • Home

Event Listeners

The eventListeners modifier adds scroll and resize listeners that update the position of the popper when necessary. These are not exhaustive and don't cover the following cases:

  • When the reference element moves or changes size.
  • When the popper element changes size (i.e. content).

Manually updating the instance via instance.update(), a ResizeObserver or requestAnimationFrame loop (if animating) can solve these if necessary.

Phase

write

Options

type Options = {
  scroll: boolean, // true
  resize: boolean, // true
};

scroll

Determines if scroll listeners are added.

resize

Determines if resize listeners are added.

Data

This modifier currently has no data.

Home