bolt / bolt/core

Values in a field with type select only sortable if autocomplete: false

Open
#2,962 5 comments 1 reaction 1 assignee Claimed by @I-Valchev View on GitHub
🐛 tag: bug
Dominant language
PHP
Stars
589
Forks
186
Avg merge
2h 23m
Merged PRs (30d)
9

Description

In the Bolt docs [(https://docs.boltcms.io/5.0/fields/select#making-the-selected-values-sortable),](url) the way to make values in a select sortable is described as:

```
somevalue:
type: select
values: programme/{title}
sort: name
autocomplete: true
limit: 1000
```

But with `autocomplete: true` that doesn't work. You have to set `autocomplete: false` to drag and drop the values in the CMS:

Schermafbeelding 2021-11-23 104214

Details
-------

| Question | Answer
|------------------------------------------------------ | ------
| Relevant Bolt Version | 5.06
| Install type | Composer install
| PHP version | 7.3 |
| Web server | Built-in, version (Symfony)

Reproduction
------------

### Steps to reproduce

I created an select type field as described in [https://docs.boltcms.io/5.0/fields/select#making-the-selected-values-sortable](url)

```
portfolio:
type: select
label: Portfolio Items
values: portfolio/{id},{title}
multiple: true
autocomplete: true
sortable: true
localize: true
```

### Expected result

I expect the select values to be sortable as drag and drop.

### Actual result

I was not able to sort the values in the select by drag and drop.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.