Comments (5)
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.
In any case I didnt see a value to make any adjustments to this issue.
from slim-select.
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.
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.
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)
- Search is undefined when using SS in shadow dom on firefox. HOT 1
- The change event triggered on the original select doesn't bubble HOT 4
- New instance with data property triggers original select change event HOT 1
- Accessibility: 'home', 'end', 'pgup' and 'pgdn' keys not registered HOT 1
- `getInstance` HOT 1
- The "addable" callback is not triggered when the search bar is empty HOT 4
- SlimSelect + modal (bug) HOT 3
- Multiselect with HTML data HOT 6
- Search slimselect not working in wire-elements/modal(LIVEWIRE V3) HOT 1
- in livewire dependent simple-selects not updating HOT 1
- Update function for times when the original select changes HOT 1
- Working Select Fails when Converted to SlimSelect - BUG IS: Doesn't handle duplicated values HOT 5
- maxValuesShown - just show all! HOT 3
- Framework documentation: Rails/Hotwire HOT 2
- Multilangual options search [wanted feature] HOT 7
- Add option to disable automatic focus of search field HOT 1
- Making the select required attribute visible HOT 1
- Multiple dropdown with class name HOT 1
- CSS Flex-Box and searchHighlight setting HOT 4
- CSS Position arrow fixed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slim-select.