BosNaufal / vue2-scrollbar

The Simplest Pretty Scroll Area Component with custom scrollbar for Vue 2. https://bosnaufal.github.io/vue2-scrollbar
MIT License
234 stars 80 forks source link

The second call on the same page doesn't work #16

Open aisin opened 7 years ago

aisin commented 7 years ago

I called the component two times on the same page, the first one was working well, but the second one did not work. And there was no error messages.

Is this component limited to the times of used on the same page?

karambafe commented 7 years ago

@aisin Use different ref, my working example:

<vue-scrollbar  ref="ScrollbarPopular">
...
</vue-scrollbar>

<vue-scrollbar  ref="ScrollbarNew">
...
</vue-scrollbar>
aisin commented 7 years ago

@karambafe I‘ve tried, but not work.

BosNaufal commented 7 years ago

Hi @aisin, Thanks for giving me an issue. but is should be worked since it has a different scope when you have a different name of ref. I need some reproduce, you can make it in webpackbin or just make a simple repo.