Jelajahi Sumber

bug fix __noscroll param (#4063)

Guy 1 tahun lalu
induk
melakukan
2dacee08cd
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 })
                 })
             }
         }