diff --git a/packages/primevue/src/megamenu/style/MegaMenuStyle.js b/packages/primevue/src/megamenu/style/MegaMenuStyle.js index 16d32aab1..3b6fd685a 100644 --- a/packages/primevue/src/megamenu/style/MegaMenuStyle.js +++ b/packages/primevue/src/megamenu/style/MegaMenuStyle.js @@ -307,8 +307,7 @@ const theme = ({ dt }) => ` `; const inlineStyles = { - rootList: ({ props }) => ({ 'max-height': props.scrollHeight, overflow: 'auto' }), - submenu: ({ instance, processedItem }) => ({ display: instance.isItemActive(processedItem) ? 'block' : 'none' }) + rootList: ({ props }) => ({ 'max-height': props.scrollHeight, overflow: 'auto' }) }; const classes = {