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 (#805)
  • Loading branch information
giuliaghisini authored Nov 6, 2024
1 parent 82f9d0f commit e210bee
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 e210bee

Please sign in to comment.