fix(react/promoted_attributes): removing relation sometimes not refreshing

This commit is contained in:
Elian Doran 2025-11-23 14:59:23 +02:00
parent c9b1691998
commit 320f064775
No known key found for this signature in database

View File

@ -95,7 +95,7 @@ export default function NoteAutocomplete({ id, inputRef: externalInputRef, text,
$autoComplete.autocomplete("val", "").trigger("change");
ref.current.value = "";
}
}, [text, noteId]);
}); // no inputs is intentional to enforce the text of the autocomplete, which is modified externally by the autocomplete.
return (
<div className="input-group" style={containerStyle}>