Skip to content

Commit

Permalink
fix: page freeze when updateSideMenuOnLoadingBlocks=true and page has…
Browse files Browse the repository at this point in the history
… gallery
  • Loading branch information
giuliaghisini committed Nov 6, 2024
1 parent d8460d1 commit 24456a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/ItaliaTheme/View/ViewUtils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ export const useSideMenu = (content, documentBody) => {
}
if (observer) {
observer.observe(documentBody.current, {
//attributes: true,
childList: true,
subtree: true,
//subtree: true, //commentato, perchè a noi interessano solo i figli di primo livello. Con questo abilitato, se in pagina ci sono delle gallery si impalla il browser
});
}
return () => {
Expand Down

0 comments on commit 24456a2

Please sign in to comment.