The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Keep spaces typed in navigation folder names (#27620)
Félix Malfait0e44b6a45a1c
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemInlineEditor.tsx b/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemInlineEditor.tsxindex 4ccd66be91b..633a15c3fc8 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemInlineEditor.tsx+++ b/packages/twenty-front/src/modules/navigation-menu-item/edit/components/NavigationMenuItemInlineEditor.tsx@@ -150,6 +150,7 @@ export const NavigationMenuItemInlineEditor = ({autoFocusselectOnFocuscopyButton={false}+ shouldTrim={false}value={name}onChange={setName}onEnter={finishRename}diff --git a/packages/twenty-front/src/modules/navigation-menu-item/edit/components/__stories__/NavigationMenuItemEditable.stories.tsx b/packages/twenty-front/src/modules/navigation-menu-item/edit/components/__stories__/NavigationMenuItemEditable.stories.tsxindex f56a46c1e42..8bdc4c6e9f9 100644--- a/packages/twenty-front/src/modules/navigation-menu-item/edit/components/__stories__/NavigationMenuItemEditable.stories.tsx+++ b/packages/twenty-front/src/modules/navigation-menu-item/edit/components/__stories__/NavigationMenuItemEditable.stories.tsx@@ -217,11 +217,11 @@ export const EditFolderInPlace: Story = {await userEvent.click(await canvas.findByText('Projects'));const input = await canvas.findByDisplayValue('Projects');await userEvent.clear(input);- await userEvent.type(input, 'Work{Enter}');- await userEvent.click(await canvas.findByText('Work'));- await userEvent.clear(await canvas.findByDisplayValue('Work'));+ await userEvent.type(input, 'Work Space {Enter}');+ await userEvent.click(await canvas.findByText('Work Space'));+ await userEvent.clear(await canvas.findByDisplayValue('Work Space'));await userEvent.type(await canvas.findByRole('textbox'), 'Discard{Escape}');- await expect(await canvas.findByText('Work')).toBeVisible();+ await expect(await canvas.findByText('Work Space')).toBeVisible();await userEvent.click(await canvas.findByRole('button', { name: 'Choose icon and color' }),);