mercs600 / vue2-perfect-scrollbar

Vue.js wrapper for perfect scrollbar
https://mercs600.github.io/vue2-perfect-scrollbar/
MIT License
275 stars 43 forks source link

Classes of child DOM elements are not updated #93

Closed forumgm18 closed 2 years ago

forumgm18 commented 2 years ago

Hello. I'm making a ListBox component. The component should have styled scrollbars and a perfect scrollbar is great for this, but there is a problem. It lies in the fact that the class of the ListBox elements is not updated (not reactive?). The ListBox component template looks like this: `

      <span>{{ opt.value.name }} </span>
  </label>

` The

Sandbox here https://stackblitz.com/edit/nuxt-starter-asttfi?file=pages/index.vue In Sandbox: "Listbox" component - using "perfect-scrollbar" - no class hovering "ListboxPsOff" component - without "perfect-scrollbar" - everything works, the class is hung

forumgm18 commented 2 years ago

v-once было лишним