@monolith-forensics/monolith-ui 1.3.62 → 1.3.71

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.
@@ -480,6 +480,15 @@ DropDownProps = {}, debounceTime = 175, sort = false, disabled = false, }) => {
480
480
  document.addEventListener("click", close);
481
481
  return () => document.removeEventListener("click", close);
482
482
  }, [refs.floating, refs.reference, handleBlur]);
483
+ // Sync inputValue with controlled value changes
484
+ useEffect(() => {
485
+ if (isControlled.current && resolvedValue !== undefined) {
486
+ const newLabel = typeof resolvedValue === "object"
487
+ ? (resolvedValue === null || resolvedValue === void 0 ? void 0 : resolvedValue.label) || ""
488
+ : resolvedValue || "";
489
+ setInputValue(newLabel);
490
+ }
491
+ }, [resolvedValue, isControlled]);
483
492
  // handle scroll item into view
484
493
  useEffect(() => {
485
494
  var _a, _b;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.3.62",
3
+ "version": "1.3.71",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",