Vue-multiselect: CSS Not working

Created on 2 Jan 2018  路  4Comments  路  Source: shentao/vue-multiselect

screenshot from 2018-01-02 09-34-12

If i remove the css, this works perfectly (without style)

screenshot from 2018-01-02 09-35-39

how to fix this? Thanks

help wanted

Most helpful comment

I know this issue is old, but I don't understand something and I like to understand ^^

This package exports a Vue Single File Component.

In this Vue component, there is a template, a script and a style tag.

And therefore, I don't understand why the style is not applied and why we need to import the dist CSS.

Thank you :)

All 4 comments

Please remember to add <style src="vue-multiselect/dist/vue-multiselect.min.css"></style> to your code/component.

i already add that css. the result is first image. If i remove that css, the result is the second image

And that is the correct behaviour. You need the CSS added somewhere in your code.

I know this issue is old, but I don't understand something and I like to understand ^^

This package exports a Vue Single File Component.

In this Vue component, there is a template, a script and a style tag.

And therefore, I don't understand why the style is not applied and why we need to import the dist CSS.

Thank you :)

Was this page helpful?
0 / 5 - 0 ratings