@monolith-forensics/monolith-ui 1.3.35 → 1.3.36
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.
|
@@ -338,6 +338,10 @@ DropDownProps = {}, debounceTime = 175, sort = false, disabled = false, }) => {
|
|
|
338
338
|
item.scrollIntoView({ block: "nearest" });
|
|
339
339
|
}
|
|
340
340
|
}, [_value]);
|
|
341
|
+
// ensure that the input value is updated when the value changes when in controlled mode
|
|
342
|
+
useEffect(() => {
|
|
343
|
+
setInputValue((_value === null || _value === void 0 ? void 0 : _value.label) || "");
|
|
344
|
+
}, [_value === null || _value === void 0 ? void 0 : _value.label]);
|
|
341
345
|
useEffect(() => {
|
|
342
346
|
if (bottomHeight < DEFAULT_DROPDOWN_HEIGHT) {
|
|
343
347
|
setPlacement("top-start");
|