From 165f9459378c0c5699fdc79e391129fd754000cc Mon Sep 17 00:00:00 2001 From: Pedro Felipe de Azevedo Furtado Date: Wed, 5 Sep 2018 17:35:04 -0300 Subject: [PATCH] Update docs.md --- pages/03.configuration/01.options-api/docs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/03.configuration/01.options-api/docs.md b/pages/03.configuration/01.options-api/docs.md index 081dc6ce..63d3e863 100644 --- a/pages/03.configuration/01.options-api/docs.md +++ b/pages/03.configuration/01.options-api/docs.md @@ -49,3 +49,4 @@ This is a list of all the Select 2 configuration options. | `tokenizer` | callback | | A callback that handles [automatic tokenization of free-text entry](/tagging#automatic-tokenization-into-tags). | | `tokenSeparators` | array | `[]` | The list of characters that should be used as token separators. | | `width` | string | `resolve` | Supports [customization of the container width](/appearance#container-width). | +| `scrollAfterSelect` | boolean | `true` | 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. |