---
navigationLabel: Event Listeners
order: 9
---

# 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.

<x-ad />

## Phase

`write`

## Options

```flow
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.
