mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-19 05:10:35 +03:00
change initialization bridging attribute name to prevent frameworks to change it back to empty
This commit is contained in:
@@ -103,7 +103,7 @@ const osInstance = OverlayScrollbars(document.querySelector('#myElement'), {});
|
||||
If you initialize OverlayScrollbars it needs a few milliseconds to create and append all the elements to the DOM.
|
||||
While this period the native scrollbars are still visible and are switched out after the initialization is finished. This is perceived as flickering.
|
||||
|
||||
To fix this behavior apply the `data-overlayscrollbars=""` attribute to the target element (and `html` element if the target element is `body`).
|
||||
To fix this behavior apply the `data-overlayscrollbars-initialize` attribute to the target element (and `html` element if the target element is `body`).
|
||||
|
||||
### Initialization with an Object
|
||||
<details>
|
||||
|
||||
Reference in New Issue
Block a user