Should fix some of the UI Issues

This commit is contained in:
Luke Berndt
2023-01-19 21:29:18 -05:00
parent fef88f3517
commit 7f85f4079d
5 changed files with 23 additions and 22 deletions

View File

@@ -314,17 +314,16 @@ function Calls(props) {
updateUri();
}, [filterGroupId, filterTalkgroups, filterType, filterDate, filterStarred, selectCallId])
/*
useEffect(() => {
if (!urlOptions && groupsData && (groupsData.length > 0)) {
setGroupVisible(true);
}
}, [groupsData])*/
}, [groupsData])
useLayoutEffect( () => {
const scrollAmount = parseInt(positionRef.current.clientHeight) - parseInt(pageYOffset.current);
if (scrollAmount > 0) {
console.log("useLayoutEffect for callsData - ref: " + pageYOffset.current + " current: " + positionRef.current.clientHeight + " Scroll Amount: " + scrollAmount)
window.scrollBy(0, scrollAmount);
}
}, [callsData])