We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b78d2ca + 2bd8d37 commit 177eaa9Copy full SHA for 177eaa9
packages/menu-surface/MenuSurface.svelte
@@ -101,9 +101,9 @@
101
let isHoisted = false;
102
if (menuSurface) {
103
isHoisted = menuSurface.foundation_.isHoistedElement_;
104
- }
105
- if (instantiate !== false) {
106
- menuSurface.destroy();
+ if (instantiate !== false) {
+ menuSurface.destroy();
+ }
107
}
108
if (isHoisted) {
109
element.parentNode.removeChild(element);
@@ -156,4 +156,4 @@
156
export function getDefaultFoundation(...args) {
157
return menuSurface.getDefaultFoundation(...args);
158
159
-</script>
+</script>
0 commit comments