luna-one 3.1.595 → 3.1.597
Sign up to get free protection for your applications and to get access to all the features.
@@ -212,9 +212,9 @@ var MegaMenu = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
212
212
|
var menuType = !collapsed ? "uncollapsed-dropdown" : !hasTertiary ? "dropdown" : "tertiary-dropdown";
|
213
213
|
|
214
214
|
// This prevents the litany of prefetching all of the data related to menu items at load
|
215
|
-
var displayStyles = {
|
216
|
-
display:
|
217
|
-
};
|
215
|
+
var displayStyles = initialDisplayNone ? {
|
216
|
+
display: 'none'
|
217
|
+
} : {};
|
218
218
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
219
219
|
id: (0, _react.useId)(),
|
220
220
|
tabIndex: mouse ? "" : "0",
|