File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import { isExist , isString , isFunction } from './object.utils'
2+ import { nodeListToArray } from './array.utils'
23
34export const EVENTS = {
45 MOUSE_ENTER : 'mouseenter' ,
@@ -337,7 +338,7 @@ export function toggleBodyOverflow (enable) {
337338 if ( enable ) {
338339 removeClass ( body , MODAL_OPEN )
339340 body . style . paddingRight = null
340- document . querySelectorAll ( FIXED_CONTENT ) . forEach ( node => {
341+ nodeListToArray ( document . querySelectorAll ( FIXED_CONTENT ) ) . forEach ( node => {
341342 node . style . paddingRight = null
342343 } )
343344 } else {
@@ -346,7 +347,7 @@ export function toggleBodyOverflow (enable) {
346347 if ( documentHasScrollbar && ! browsersWithFloatingScrollbar ) {
347348 const scrollbarWidth = getScrollbarWidth ( )
348349 body . style . paddingRight = `${ scrollbarWidth } px`
349- document . querySelectorAll ( FIXED_CONTENT ) . forEach ( node => {
350+ nodeListToArray ( document . querySelectorAll ( FIXED_CONTENT ) ) . forEach ( node => {
350351 node . style . paddingRight = `${ scrollbarWidth } px`
351352 } )
352353 }
You can’t perform that action at this time.
0 commit comments