palantir/blueprint

Scrolling Select2 inside of Table2 causes Table2 to also scroll

Open

#5,469 建立於 2022年7月27日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)TypeScript (20,263 star) (2,167 fork)batch import
P2Package: popover2Package: selectPackage: tableType: bughelp wanted

描述

Environment

  • Package version(s):
@blueprintjs/select: 4.5.1
@blueprintjs/table": 4.4.1
  • Operating System: Windows 10 Pro Version 21H2
  • Browser name and version: Brave Version 1.41.100 -- Chromium 103.0.5060.134 (Official Build) (64-Bit)

Code Sandbox

Minimal repro: https://codesandbox.io/s/blueprint-sandbox-forked-tbjtm1?file=/src/Table2Example.tsx

Steps to reproduce

  1. Click on one of the dropdowns
  2. Attempt to scroll down

Actual behavior

The Table scrolls and the Menu scrolls.

Expected behavior

The Table does not scroll and the Menu scrolls.

Possible solution

Not sure. I've tried a bunch of things but nothing seems to work. Settings boundary on Table's popoverProps is what I expected to initially work but it didn't. It is also weird that even if the Menu is outside of the Table bounds and you scroll, the Table still scrolls.

One note: If you change the height and width in app.css to both 100%, the Table does not scroll as expected.

貢獻者指南