We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c28f73d commit fb28ba5Copy full SHA for fb28ba5
1 file changed
apps/webapp/app/components/primitives/SearchInput.tsx
@@ -48,6 +48,8 @@ export function SearchInput({
48
const [isFocused, setIsFocused] = useState(false);
49
50
// Compare against a ref, not `text`, so the effect stays off the keystroke path.
51
+ // Trade-off: controlled mode assumes the parent accepts onValueChange; it won't
52
+ // re-sync `text` if the parent rejects a change and holds `value` unchanged.
53
const lastSyncedRef = useRef(initialSearch);
54
55
useEffect(() => {
0 commit comments