-
Notifications
You must be signed in to change notification settings - Fork 36
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
After create new option, the order doesn't is kept #42
Comments
I have tried update the attribute 'data-bsm-order' to the current order but it doesn't work:
|
it would really help if you can come with a runnable example (ie a plunker) and describe the observed vs desired behavior. Thanks. |
This is one example: https://jsfiddle.net/vj13191t/3/ At the beginning:
Move D to 1:
Add X from the input and the result is:
But I think it would be so:
|
Thanks for the fiddle. The problem is that the sortable plugin does not update the the One solution would be to update the plugin ( An other solution would be to use: |
I've also tried updating parameters "data-bsm-order" before adding the new option , but did not work:
|
You should try to do it in the sortable plugin and probably want to do |
I have this select:
And the Javascript:
The select is showed in the correct order. Then I change the order and after I add an option:
But the order of the options is changed to the initial and not to the last order.
The text was updated successfully, but these errors were encountered: