Web: Files: Fix elementResizeDetector work for not first folder
This commit is contained in:
parent
fc4d8ceb3d
commit
81dc197bcf
@ -49,7 +49,7 @@ const FilesTileContainer = ({ filesList, t, sectionWidth }) => {
|
||||
|
||||
elementResizeDetector.uninstall(firstRef.current);
|
||||
};
|
||||
}, [firstRef]);
|
||||
}, [firstRef, filesList]);
|
||||
|
||||
const onResize = useCallback(() => {
|
||||
const { width } = firstRef.current.getBoundingClientRect();
|
||||
|
Loading…
Reference in New Issue
Block a user