@vodafone_de/brix-components 9.0.1 → 9.0.2
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.
|
@@ -252,7 +252,7 @@ const SuggestInput = forwardRef(({
|
|
|
252
252
|
}
|
|
253
253
|
}, [showList]);
|
|
254
254
|
useEffect(() => {
|
|
255
|
-
if (
|
|
255
|
+
if (props.value === void 0) {
|
|
256
256
|
return;
|
|
257
257
|
}
|
|
258
258
|
setValue(props.value);
|
|
@@ -365,7 +365,7 @@ const SuggestInput = forwardRef(({
|
|
|
365
365
|
/* @__PURE__ */ jsx(InputStyled, { ...inputProps, ref: inputRef, onChange: (e) => handleChange(e.target.value), onClick: () => {
|
|
366
366
|
if (disabled) return;
|
|
367
367
|
setShowList(true);
|
|
368
|
-
}, role: "combobox", value: ((_a = listItems == null ? void 0 : listItems.find((listItem) => listItem.value === value)) == null ? void 0 : _a.label) || value, ...{
|
|
368
|
+
}, onBlur: () => setShowList(false), role: "combobox", value: ((_a = listItems == null ? void 0 : listItems.find((listItem) => listItem.value === value)) == null ? void 0 : _a.label) || value, ...{
|
|
369
369
|
"aria-expanded": showList,
|
|
370
370
|
"aria-controls": "listbox",
|
|
371
371
|
"aria-activedescendant": selectedOption > -1 ? `${uid}-item-${selectedOption}` : void 0,
|
|
@@ -388,7 +388,6 @@ const SuggestInput = forwardRef(({
|
|
|
388
388
|
/* @__PURE__ */ jsx(FormHelperMessage, { id: messageId, status, message: inputStateError === status ? errorMessage : helperText })
|
|
389
389
|
] });
|
|
390
390
|
});
|
|
391
|
-
SuggestInput.displayName = "SuggestInput";
|
|
392
391
|
export {
|
|
393
392
|
SuggestInput as default
|
|
394
393
|
};
|