Skip to content

Commit

Permalink
Update MaterialUIMenuImplementation.js
Browse files Browse the repository at this point in the history
  • Loading branch information
4ian authored Oct 20, 2024
1 parent cf9940b commit 3736901
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions newIDE/app/src/UI/Menu/MaterialUIMenuImplementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const SubMenuItem = ({ item, buildFromTemplate }) => {
return (
<React.Fragment>
<MenuItem
dense={electron || !isTouchscreen}
dense={!!electron || !isTouchscreen}
style={styles.menuItemWithSubMenu}
key={item.label}
disabled={
Expand Down Expand Up @@ -225,7 +225,7 @@ export default class MaterialUIMenuImplementation
} else if (item.type === 'checkbox') {
return (
<MenuItem
dense={electron || !isTouchscreen}
dense={!!electron || !isTouchscreen}
key={'checkbox' + item.label}
checked={
// $FlowFixMe - existence should be inferred by Flow.
Expand Down Expand Up @@ -278,7 +278,7 @@ export default class MaterialUIMenuImplementation
} else {
return (
<MenuItem
dense={electron || !isTouchscreen}
dense={!!electron || !isTouchscreen}
key={'item' + item.label}
disabled={item.enabled === false}
onClick={e => {
Expand Down

0 comments on commit 3736901

Please sign in to comment.