Code Monkey home page Code Monkey logo

Comments (4)

bci24 avatar bci24 commented on June 15, 2024 1

I think the problem is here

.vue-tag, .vue-tag.selected {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #999;
    border-radius: 4px;
    padding: 0 4px;
    font-size: .8rem;
}

it should be

.vue-tag.selected {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #999;
    border-radius: 4px;
    padding: 0 4px;
    font-size: .8rem;
}

without

.vue-tag,

from vue-next-select.

soc221b avatar soc221b commented on June 15, 2024 1

@bci24 Thanks for lot of detail, It works now~

from vue-next-select.

soc221b avatar soc221b commented on June 15, 2024

I create a minimal demo for your case, it seems to work fine.

Maybe you can check the tags' class:

for selected tags:

<li class="vue-tag selected">...</li>

for non-selected tags:

<li class="vue-tag">...</li>

https://codesandbox.io/s/vue-next-select-forked-c26uh?file=/src/App.vue

from vue-next-select.

bci24 avatar bci24 commented on June 15, 2024

I cleared all the custom style made for vue-select and load only the index.min.css

// vue-next-select scss
@import '~vue-next-select/dist/index.min.css';
``
I was thinking that I did something wrong in css 

As you can see in the pictures attached, all the 8 items appears in the select

You can see that 1 and 4 appears as selected (with class="vue-tag selected")

but... I click on "vue-tag" it still has the css display:flex (instead of none)

I think is an issue in the css (index.min.css)

![Screenshot from 2020-12-08 13-38-22](https://user-images.githubusercontent.com/49674076/101479953-ad770e00-395b-11eb-90cc-f2988f2e88ba.png)
![Screenshot from 2020-12-08 13-38-41](https://user-images.githubusercontent.com/49674076/101479957-ae0fa480-395b-11eb-8ca8-aa4d501f8978.png)
![Screenshot from 2020-12-08 13-39-11](https://user-images.githubusercontent.com/49674076/101479959-ae0fa480-395b-11eb-8ee8-00ae1bc117f5.png)
![Screenshot from 2020-12-08 13-39-22](https://user-images.githubusercontent.com/49674076/101479962-aea83b00-395b-11eb-9918-3ee8c0e72acd.png)

from vue-next-select.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.