From bba3f27cc0ece9aebb6eceb471f2ddafd9026454 Mon Sep 17 00:00:00 2001 From: Chris Graham Date: Thu, 27 Oct 2022 13:09:22 -0500 Subject: [PATCH] Explain dropdownAutoWidth dropdownAutoWidth is not documented, and its behavior is not clear. It sets the width on the actual dropdown not the actual select2 box. That may be obvious to some, but others will think of the whole widget as a dropdown element. --- docs/pages/03.configuration/01.options-api/docs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/03.configuration/01.options-api/docs.md b/docs/pages/03.configuration/01.options-api/docs.md index 183b4b6f81..cc3c15486b 100644 --- a/docs/pages/03.configuration/01.options-api/docs.md +++ b/docs/pages/03.configuration/01.options-api/docs.md @@ -18,7 +18,7 @@ This is a list of all the Select2 configuration options. | `dir` | string | `ltr` | Sets the [`dir` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir) on the selection and dropdown containers to indicate the direction of the text. | | `disabled` | boolean | `false` | When set to `true`, the select control will be disabled. | | `dropdownAdapter` | | `DropdownAdapter` | Used to override the built-in [DropdownAdapter](/advanced/default-adapters/dropdown) | -| `dropdownAutoWidth` | boolean | `false` | | +| `dropdownAutoWidth` | boolean | `false` | Sets the width on the dropdown dynamically whenever it is opened | | `dropdownCssClass` | string | `''` | Adds additional CSS classes to the dropdown container. The helper `:all:` can be used to add all CSS classes present on the original `