forked from farhoodlabs/paperclip
92e03ac4e3
Address Greptile review feedback: the plain-value fallback in emit() caused the useEffect sync to re-run toRows(), which mapped the plain binding back to source: "plain", snapping the dropdown back. Fix: add an emittingRef that distinguishes local emit() calls from external value changes (like overlay reset after save). When the change originated from our own emit, skip the re-sync so the transitioning row stays in "secret" mode while the user picks a secret. Co-Authored-By: Paperclip <noreply@paperclip.ing>