Skip to content

Commit c0463ae

Browse files
committed
removed important
Signed-off-by: YASHMAHAKAL <yvsst01@gmail.com>
1 parent 95857e3 commit c0463ae

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/components/Pricing/PricingAddons/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,6 @@ export const PricingAddons = ({ isYearly = false, setIsYearly, currency, enterpr
237237
value={selectedAddon?.id || ""}
238238
onChange={(e) => handleAddonChange(e.target.value)}
239239
label="Optionally, choose one or more add-ons"
240-
MenuProps={{
241-
disableScrollLock: true,
242-
disablePortal: true,
243-
}}
244240
>
245241
{addOns.map((addon) => (
246242
<MenuItem key={addon.id} value={addon.id}>

src/sections/app.style.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ body,html {
5757
overflow-x: hidden;
5858
}
5959
60+
/* When MUI opens a dropdown/modal, it injects overflow:hidden on <body> via inline style.
61+
Because body has overflow:clip, <html> is the actual scroll container. This rule
62+
synchronizes the lock — when MUI locks body, we also lock html to prevent scrolling. */
63+
html:has(body[style*="overflow: hidden"]) {
64+
overflow: hidden;
65+
}
66+
6067
body {
6168
font-size: 1.125rem;
6269
overflow: clip;

0 commit comments

Comments
 (0)