Browse Source

bug fix __noscroll param (#4063)

Guy 1 year ago
parent
commit
2dacee08cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/focus/src/index.js

+ 1 - 1
packages/focus/src/index.js

@@ -90,7 +90,7 @@ export default function (Alpine) {
                 setTimeout(() => {
                     if (! el.hasAttribute('tabindex')) el.setAttribute('tabindex', '0')
 
-                    el.focus({ preventScroll: this._noscroll })
+                    el.focus({ preventScroll: this.__noscroll })
                 })
             }
         }