Skip to content

Filter popover not calculating position correctly #4340

@danny-williams

Description

@danny-williams

Issue summary

As I apply filters, the popover pane moves, but the dropdown selection does not. It sort of floats in space, detached from its parent. This seems broken. Screenshot below to illustrate.
Screen Shot 2021-07-27 at 9 52 39 AM

Expected behavior

I'd expect the child dropdown to move with the parent popover. See screenshot above for reference. The whole component should feel like one.

Actual behavior

See screenshot above.

Steps to reproduce the problem

  1. Turn on orders_saved_views beta flag
  2. Apply a filter to the table
  3. Observe how the selection dropdown doesn't move with the filter pane.

Reduced test case

The best way to get your bug fixed is to provide a reduced test case. This CodeSandbox template is a great starting point.

Specifications

  • Are you using the React components? (Y/N):
  • Polaris version number:
  • Browser: Chrome
  • Device: Macbook pro
  • Operating System: macOs

Or run npx envinfo --system --binaries --browsers --npmPackages react,react-dom,@shopify/polaris to provide specifications on your environment including version numbers, browser, device, and operating system.

Paste the results here:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken and not working as intended in the system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions