palantir/blueprint

Scrolling Select2 inside of Table2 causes Table2 to also scroll

開放

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

 (4 則留言) (0 個反應) (0 位負責人)TypeScript (2,167 個分叉)batch import
P2Package: popover2Package: selectPackage: tableType: bughelp wanted

倉庫指標

星標
 (20,263 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南