mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
perf(dashboard): fix filter-box performance bug (#16702)
This commit is contained in:
@@ -249,8 +249,15 @@ function styled<
|
||||
if (forceOverflow) {
|
||||
Object.assign(restProps, {
|
||||
closeMenuOnScroll: (e: Event) => {
|
||||
// ensure menu is open
|
||||
const menuIsOpen = (stateManager as BasicSelect<OptionType>)?.state
|
||||
?.menuIsOpen;
|
||||
const target = e.target as HTMLElement;
|
||||
return target && !target.classList?.contains('Select__menu-list');
|
||||
return (
|
||||
menuIsOpen &&
|
||||
target &&
|
||||
!target.classList?.contains('Select__menu-list')
|
||||
);
|
||||
},
|
||||
menuPosition: 'fixed',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user