Problem/Motivation

It is useful to render server-provided order of elements in some cases.
E.g. when site admins edited specific terms and sorted them using UI.

Steps to reproduce

  1. Create vocabulary.
  2. Add elements .
  3. Sort them.
  4. Add a field to some node and try selectize in the form to show it.
  5. See that output is different from the taxonomy UI sorted.

Proposed resolution

  1. Add a new option to the widget settings - Skip sorting and use a server order.
  2. Adjust JS and implement based on the setting https://github.com/selectize/selectize.js/discussions/1706#discussioncom...

I'll prepare patch or MR soon.

Issue fork selectize-3321954

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Andriy Khomych created an issue.

Ressinel made their first commit to this issue’s fork.