Change the removeScroll behavior to false by default
This commit is contained in:
parent
17401e5f5e
commit
2330d34546
|
@ -8,6 +8,7 @@ interface CustomStyleCSS extends CSSProperties {
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
open: boolean;
|
open: boolean;
|
||||||
|
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +19,7 @@ type Props = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If true, it will remove the overflow scroll from the page when open.
|
* If true, it will remove the overflow scroll from the page when open.
|
||||||
* Default: true
|
* Default: false
|
||||||
*/
|
*/
|
||||||
removeScroll?: boolean;
|
removeScroll?: boolean;
|
||||||
|
|
||||||
|
@ -30,7 +31,7 @@ export function Backdrop({
|
||||||
onClose,
|
onClose,
|
||||||
style,
|
style,
|
||||||
className = "",
|
className = "",
|
||||||
removeScroll = true,
|
removeScroll = false,
|
||||||
}: Props) {
|
}: Props) {
|
||||||
const attr = attributes({ "aria-expanded": open });
|
const attr = attributes({ "aria-expanded": open });
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue