@strapi/design-system 2.0.0-rc.22 → 2.0.0-rc.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3061,6 +3061,7 @@ const Combobox = React.forwardRef(
|
|
|
3061
3061
|
onCreateOption(internalTextValue);
|
|
3062
3062
|
} else if (onCreateOption && creatable === "visible") {
|
|
3063
3063
|
onCreateOption();
|
|
3064
|
+
setInternalIsOpen(false);
|
|
3064
3065
|
}
|
|
3065
3066
|
};
|
|
3066
3067
|
const generatedIntersectionId = useId();
|
|
@@ -3143,7 +3144,7 @@ const Combobox = React.forwardRef(
|
|
|
3143
3144
|
loading ? /* @__PURE__ */ jsx(Flex, { justifyContent: "center", alignItems: "center", paddingTop: 2, paddingBottom: 2, children: /* @__PURE__ */ jsx(Loader, { small: true, children: loadingMessage }) }) : null,
|
|
3144
3145
|
/* @__PURE__ */ jsx(Box, { id: intersectionId, width: "100%", height: "1px" })
|
|
3145
3146
|
] }),
|
|
3146
|
-
creatable ? /* @__PURE__ */ jsx(ComboboxCreateItem, { onPointerUp: handleCreateItemClick, asChild: true, children: /* @__PURE__ */ jsx(OptionBox, { children: /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
|
|
3147
|
+
creatable ? /* @__PURE__ */ jsx(ComboboxCreateItem, { onPointerUp: handleCreateItemClick, onClick: handleCreateItemClick, asChild: true, children: /* @__PURE__ */ jsx(OptionBox, { children: /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
|
|
3147
3148
|
creatableStartIcon && /* @__PURE__ */ jsx(Box, { tag: "span", "aria-hidden": true, display: "inline-flex", children: creatableStartIcon }),
|
|
3148
3149
|
/* @__PURE__ */ jsx(Typography, { children: createMessage(internalTextValue ?? "") })
|
|
3149
3150
|
] }) }) }) : null
|