Skip to content

Commit 3df83c8

Browse files
authored
Display "null" as the default for tokenSeparators (select2#5953)
1 parent 0a1bcdd commit 3df83c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • docs/pages/03.configuration/01.options-api

docs/pages/03.configuration/01.options-api/docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ This is a list of all the Select2 configuration options.
4040
| `templateSelection` | callback | | Customizes the way that [selections are rendered](/selections#templating). |
4141
| `theme` | string | `default` | Allows you to set the [theme](/appearance#themes). |
4242
| `tokenizer` | callback | | A callback that handles [automatic tokenization of free-text entry](/tagging#automatic-tokenization-into-tags). |
43-
| `tokenSeparators` | array | `[]` | The list of characters that should be used as token separators. |
43+
| `tokenSeparators` | array | `null` | The list of characters that should be used as token separators. |
4444
| `width` | string | `resolve` | Supports [customization of the container width](/appearance#container-width). |
4545
| `scrollAfterSelect` | boolean | `false` | If `true`, resolves issue for multiselects using `closeOnSelect: false` that caused the list of results to scroll to the first selection after each select/unselect (see https://github.com/select2/select2/pull/5150). This behaviour was intentional to deal with infinite scroll UI issues (if you need this behavior, set `false`) but it created an issue with multiselect dropdown boxes of fixed length. This pull request adds a configurable option to toggle between these two desirable behaviours. |

0 commit comments

Comments
 (0)