Skip to content

Commit 563163a

Browse files
committed
fix: set menu surface max height if it changes to zero after initialization
1 parent 40e1472 commit 563163a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/menu-surface/src/MenuSurface.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
instance.setFixedPosition(fixed);
100100
}
101101
102-
$: if (instance && maxHeight > 0) {
102+
$: if (instance) {
103103
instance.setMaxHeight(maxHeight);
104104
}
105105
@@ -220,7 +220,7 @@
220220
'bottom' in position ? `${position.bottom}px` : '';
221221
},
222222
setMaxHeight: (height) => {
223-
internalStyles["max-height"] = height;
223+
internalStyles['max-height'] = height;
224224
},
225225
});
226226

0 commit comments

Comments
 (0)