mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-15 11:59:39 +03:00
Modals: Fix bad paddingRight calculation; fixes #17399
We want to sum two numbers, not concatenate their stringifications. Closes #17457 by merging a tweaked version of it.
This commit is contained in:
+1
-1
@@ -427,7 +427,7 @@ const Modal = (($) => {
|
||||
|
||||
if (this._isBodyOverflowing) {
|
||||
document.body.style.paddingRight =
|
||||
bodyPadding + `${this._scrollbarWidth}px`
|
||||
`${bodyPadding + this._scrollbarWidth}px`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user