diff --git a/site/content/docs/5.0/components/dropdowns.md b/site/content/docs/5.0/components/dropdowns.md index 52da465a3712..2cfd72959911 100644 --- a/site/content/docs/5.0/components/dropdowns.md +++ b/site/content/docs/5.0/components/dropdowns.md @@ -903,6 +903,56 @@ Use `data-bs-offset` or `data-bs-reference` to change the location of the dropdo {{< /example >}} +### Auto close behavior + +By default, the dropdown menu is closed when clicking inside or outside the dropdown menu. You can use the `autoClose` option to change this behavior of the dropdown. + +{{< example >}} +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+{{< /example >}} + ## Sass ### Variables @@ -1007,6 +1057,20 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap

For more information refer to Popper's offset docs.

+ + autoClose + boolean | string + true + +

Configure the auto close behavior of the dropdown:

+ + + popperConfig null | object | function