diff --git a/packages/overlayscrollbars-vue/README.md b/packages/overlayscrollbars-vue/README.md index aa6c825..02f607e 100644 --- a/packages/overlayscrollbars-vue/README.md +++ b/packages/overlayscrollbars-vue/README.md @@ -145,10 +145,6 @@ const Component = { initialize({ target: div.value }); }); - onUnmounted(() => { - instance().destroy(); - }); - return () =>
}, } @@ -156,6 +152,8 @@ const Component = { The composable is for advanced usage and lets you control the whole initialization process. This is useful if you want to integrate it with other plugins. +The composable will destroy the instance automatically if the component unmounts. + ### Parameters Parameters are optional and similar to the `OverlayScrollbarsComponent`.