mercs600 / vue3-perfect-scrollbar

Vue.js wrapper for perfect scrollbar for version 3
140 stars 20 forks source link

Not working with Vue 3.1.2? #6

Closed niuage closed 3 years ago

niuage commented 3 years ago
import PerfectScrollbar from 'vue3-perfect-scrollbar/dist/vue3-perfect-scrollbar.esm';
import 'vue3-perfect-scrollbar/dist/vue3-perfect-scrollbar.css';

// some code..

const app = createApp(component, Object.assign({}, rootEl.dataset));
app.use(PerfectScrollbar);
app.mount(`#${domId}`);

The app is working fine, and when I use the component, it does generate the div with the ps class, but that's it. No ps__rail-x div or anything like that, so it seems like the perfect-scrollbar plugin is not being initialized?

Screenshot 2021-07-22 at 13 26 49

No errors in the console.

Any idea what could be wrong? Thanks.

niuage commented 3 years ago

For some reason the mounted callback is not called, even when I import the component locally.