Change the removeScroll behavior to false by default

This commit is contained in:
Arnaud 2024-09-13 18:40:08 +02:00
parent 17401e5f5e
commit 2330d34546
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
1 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ interface CustomStyleCSS extends CSSProperties {
type Props = {
open: boolean;
onClose: () => void;
/**
@ -18,7 +19,7 @@ type Props = {
/**
* If true, it will remove the overflow scroll from the page when open.
* Default: true
* Default: false
*/
removeScroll?: boolean;
@ -30,7 +31,7 @@ export function Backdrop({
onClose,
style,
className = "",
removeScroll = true,
removeScroll = false,
}: Props) {
const attr = attributes({ "aria-expanded": open });