From 4b0d1cd848594d7b89ac6cf7aca8c26c162d0328 Mon Sep 17 00:00:00 2001 From: Rajdeep Das Date: Wed, 19 Nov 2025 15:45:17 +0530 Subject: [PATCH] Fixed immediate UI update after Enter on single-item fields (#15825) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, single-item fields `maxItemCount: 1` didn’t show updated values after pressing `Enter` the UI only refreshed on click outside. This happened because the items list was hidden while `shouldAutoEditSingleItem` remained true. This PR updates the render condition to also check `!isInputDisplayed`, ensuring the items list re-renders immediately after editing. **Result:** Instant UI updates on Enter with no impact on multi-item fields. Fixes #15792 Co-authored-by: Lucas Bordeau --- .../ui/meta-types/input/components/MultiItemFieldInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/MultiItemFieldInput.tsx b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/MultiItemFieldInput.tsx index 96da27492c..41b4dfd289 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/MultiItemFieldInput.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/input/components/MultiItemFieldInput.tsx @@ -217,7 +217,7 @@ export const MultiItemFieldInput = ({ return ( - {!!items.length && !shouldAutoEditSingleItem && ( + {!!items.length && (!shouldAutoEditSingleItem || !isInputDisplayed) && ( <> {items.map((item, index) =>