Skip to content

Panel positioning is wrong in an absolute positioned form when panelContainer is used  #763

Open
@salomvary

Description

@salomvary

Description

When the autocomplete form and input is placed in an absolute positioned container (eg. a modal dialog) and a custom panelContainer is used (pointing to an element in the same absolute positioned container), the panel is misplaced (towards bottom-right).

Screenshot 2021-10-11 at 16 11 22

Reproduction

Preview →.

Steps

  1. Check "Custom panelContainer" and "Positioned" checkboxes
  2. Search for something in any of the search boxes

Expected behavior

Even when custom panelContainer is used inside an absolute positioned element, the panel should be placed below the search input.

Environment

  • OS: macOS, likely not specific
  • Browser: Firefox, likely not specific
  • Autocomplete version: 1.4.0, next

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions