From 8cddb3b7c4febb0bb8af9d84cb4244261376ebeb Mon Sep 17 00:00:00 2001 From: Rene Haas Date: Thu, 17 Nov 2022 09:25:17 +0100 Subject: [PATCH] improve readme --- packages/overlayscrollbars-vue/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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`.