Set marginRight as string (#24422)
parent
d5a6c93808
commit
37e98d9d56
|
@ -54,7 +54,7 @@ export default class MediaContainer extends PureComponent {
|
||||||
|
|
||||||
handleCloseMedia = () => {
|
handleCloseMedia = () => {
|
||||||
document.body.classList.remove('with-modals--active');
|
document.body.classList.remove('with-modals--active');
|
||||||
document.documentElement.style.marginRight = 0;
|
document.documentElement.style.marginRight = '0';
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
media: null,
|
media: null,
|
||||||
|
|
|
@ -73,7 +73,7 @@ export default class ModalRoot extends React.PureComponent {
|
||||||
document.documentElement.style.marginRight = `${getScrollbarWidth()}px`;
|
document.documentElement.style.marginRight = `${getScrollbarWidth()}px`;
|
||||||
} else {
|
} else {
|
||||||
document.body.classList.remove('with-modals--active');
|
document.body.classList.remove('with-modals--active');
|
||||||
document.documentElement.style.marginRight = 0;
|
document.documentElement.style.marginRight = '0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue