Skip to content

Add onPositionChange hook for Popper #548

@kachurun

Description

@kachurun

In any component based on Popper (e.g., Popover, Dropdown, ...), it would be good to have the ability to know when the position changes and access the pos object

We only need to add something like:

mergedProps.onPositionChange?.(pos, floatingEl);

at the end of the updatePosition function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions