From 18a89b515235a212104fec91738562ad3f1307c4 Mon Sep 17 00:00:00 2001 From: Thomas Trompette Date: Thu, 17 Apr 2025 18:39:18 +0200 Subject: [PATCH] Set error on number field and prevent form from being submitted (#11637) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Capture d’écran 2025-04-17 à 18 14 46 --- .../components/CmdEnterActionButton.tsx | 2 +- .../components/FormFieldInput.tsx | 6 +++++ .../components/FormNumberFieldInput.tsx | 23 +++++++++++++++---- .../FormNumberFieldInput.stories.tsx | 13 +++++++++++ .../WorkflowEditActionFormFiller.tsx | 9 ++++++-- .../WorkflowEditActionFormFiller.stories.tsx | 2 +- 6 files changed, 47 insertions(+), 8 deletions(-) diff --git a/packages/twenty-front/src/modules/action-menu/components/CmdEnterActionButton.tsx b/packages/twenty-front/src/modules/action-menu/components/CmdEnterActionButton.tsx index be748480f..0d3227416 100644 --- a/packages/twenty-front/src/modules/action-menu/components/CmdEnterActionButton.tsx +++ b/packages/twenty-front/src/modules/action-menu/components/CmdEnterActionButton.tsx @@ -23,7 +23,7 @@ export const CmdEnterActionButton = ({ return (