mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-11 00:07:30 -05:00
fixed scrolling perf using ref callbacks
This commit is contained in:
@@ -334,7 +334,7 @@ useLayoutEffect(() => {
|
||||
}, [groupsData])
|
||||
|
||||
|
||||
|
||||
const setPositionRef = node => positionRef.current = node;
|
||||
|
||||
|
||||
let archiveLabel = "";
|
||||
@@ -360,7 +360,7 @@ useLayoutEffect(() => {
|
||||
}
|
||||
|
||||
return (
|
||||
<div ref={positionRef}>
|
||||
<div ref={setPositionRef}>
|
||||
<FilterModal shortName={shortName} open={filterVisible} onClose={handleFilterClose} />
|
||||
<CalendarModal open={calendarVisible} onClose={handleCalendarClose} archive={archive} key={shortName} />
|
||||
<GroupModal shortName={shortName} open={groupVisible} onClose={handleGroupClose} />
|
||||
|
||||
Reference in New Issue
Block a user