You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browser and OS versions: Firefox 60, macOS 10.13.5
Steps to reproduce
Create a Blueprint.js <Table> with lots of content so the table becomes scrollable.
Place a Blueprint.js <Select> component on top of it with a list of items; the list should be long enough to make the contents scrollable.
Open the <Select> component; make sure that the popover lies above the table.
Scroll the <Select> component with two-finger scrolling or with the mouse wheel.
Actual behavior
Both the contents of the popover and the table underneath it scroll at the same time. (Scrolling of the table is buggy on Firefox, but that's covered in #1712.
Expected behavior
Only the popover contents should scroll.
Possible solution
A workaround is to use the popoverRef prop of the Select to get a reference to the root div of the popover and then add an onwheel event handler (via direct DOM manipulation) that calls event.stopPropagation(). This could be the default for all Select instances.
The text was updated successfully, but these errors were encountered:
I'm experiencing this as well, but only when using a scrollable element in a ColumnHeaderCell's menuRenderer (I'd assume it's a pretty common use-case to show a variable length list of filter options in that menu).
Here's a minimal repro:
<TablenumRows={100}><ColumncolumnHeaderCellRenderer={()=>(<ColumnHeaderCellname="Number"menuRenderer={()=>(// Adding `onWheel={e => e.stopPropagation()}` to this div is the workaround<divstyle={{height: 300,width: 200,overflowY: 'auto'}}>{Array.from({length: 40}).map((r,i)=>(<divkey={i}>Option {i}</div>))}</div>)}/>)}cellRenderer={i=><Cell>{i}</Cell>}/></Table>
When building a Popover (constructed similarly to how ColumnHeaderCell does it) above the Table with the exact same contents, I don't experience the issue.
I'm using @blueprintjs/core@3.5.1 and @blueprintjs/table@3.1.1
Environment
@blueprintjs/core
2.3.1,@blueprintjs/select
2.0.1,@blueprintjs/table
2.1.1Steps to reproduce
<Table>
with lots of content so the table becomes scrollable.<Select>
component on top of it with a list of items; the list should be long enough to make the contents scrollable.<Select>
component; make sure that the popover lies above the table.<Select>
component with two-finger scrolling or with the mouse wheel.Actual behavior
Both the contents of the popover and the table underneath it scroll at the same time. (Scrolling of the table is buggy on Firefox, but that's covered in #1712.
Expected behavior
Only the popover contents should scroll.
Possible solution
A workaround is to use the
popoverRef
prop of theSelect
to get a reference to the root div of the popover and then add anonwheel
event handler (via direct DOM manipulation) that callsevent.stopPropagation()
. This could be the default for allSelect
instances.The text was updated successfully, but these errors were encountered: