Code Monkey home page Code Monkey logo

Comments (5)

brianvoe avatar brianvoe commented on August 28, 2024

So after looking at this in more detail i didnt implement any type of alphabetical sorting. What essentially is happening is based upon how its selecting may append to the end of the list or set the value of the original select and rebuild the select value in the order of the select options.

from slim-select.

brianvoe avatar brianvoe commented on August 28, 2024

In any case I didnt see a value to make any adjustments to this issue.

from slim-select.

rasmusgadensgaard avatar rasmusgadensgaard commented on August 28, 2024

I get your point in that this is not related to alphabetically sorting, my bad.

The issue is that the onChange, and I guess also the other events returns the selected values in the original order of the tags, not in the order in which they where selected.

This results in an inconsistent application when you use slimselectjs to build a page dynamically based on the selections, because the slimselectjs dropdown will display selected options in the order in which they were selected, while the events will return the original order.

from slim-select.

brianvoe avatar brianvoe commented on August 28, 2024

I see your point. Ok so what I'm going to do to keep consistency is derive the visual selection and the output of selected values based upon the original order of the list. This should help your situation.

I'll let you know when this is done.

from slim-select.

brianvoe avatar brianvoe commented on August 28, 2024

Ok v1.2.0. I updated the code make the multiselect value display in the same order as the original select. I also made sure the onchange values returning back are also in the order of the original select.

Thanks for submitting this issue!

from slim-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.