Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add static class to avoid removing after Vue merge vnode classes #17

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

mercs600
Copy link
Owner

@mercs600 mercs600 commented Nov 5, 2019

resolves #16

So.. the problem is that .ps class is added by native js way in perfect scrollbar sources. Then Vue.js during generate classes for vnode and merge classes takes into account only vnode classes I mean staticClass and class - so these classes can be only added on vue component level. See more here https://github.com/vuejs/vue/blob/e90cc60c4718a69e2c919275a999b7370141f3bf/dist/vue.runtime.common.dev.js#L5484 and issue related with that -> vuejs/vue#3975

So the better way is just add this class on component level.

@mercs600 mercs600 merged commit b790559 into master Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.ps class gets removed by dynamic v-bind:class
1 participant