IO-3515 Minimally functional form fill out.

This commit is contained in:
Patrick Fic
2026-01-29 16:26:16 -08:00
parent 96731a29e1
commit 20dad2caba
6 changed files with 124 additions and 18 deletions

View File

@@ -11,8 +11,13 @@ const VendorSearchSelect = ({ value, onChange, options, onSelect, disabled, pref
const [option, setOption] = useState(value);
useEffect(() => {
console.log("*** ~ VendorSearchSelect ~ USEEFFECT:", value, option);
if (value !== option && onChange) {
onChange(option);
if (value && !option) {
onChange(value);
} else {
onChange(option);
}
}
}, [value, option, onChange]);