diff --git a/packages/webapp/src/components/Select/SalutationList.tsx b/packages/webapp/src/components/Select/SalutationList.tsx index a57dd1229..d869b20fc 100644 --- a/packages/webapp/src/components/Select/SalutationList.tsx +++ b/packages/webapp/src/components/Select/SalutationList.tsx @@ -28,6 +28,7 @@ export function SalutationList({ ...restProps }: SalutationListProps) { items={items} valueAccessor={'key'} textAccessor={'label'} + labelAccessor={'_label'} placeholder={intl.get('salutation')} filterable={false} {...restProps} diff --git a/packages/webapp/src/containers/Customers/CustomerForm/CustomerFloatingActions.tsx b/packages/webapp/src/containers/Customers/CustomerForm/CustomerFloatingActions.tsx index f1b958914..f1de71a12 100644 --- a/packages/webapp/src/containers/Customers/CustomerForm/CustomerFloatingActions.tsx +++ b/packages/webapp/src/containers/Customers/CustomerForm/CustomerFloatingActions.tsx @@ -22,18 +22,13 @@ export function CustomerFloatingActions() { }; // Formik context. - const { resetForm, submitForm, isSubmitting } = useFormikContext(); + const { submitForm, isSubmitting } = useFormikContext(); // Handle submit button click. const handleSubmitBtnClick = (_event: React.MouseEvent) => { setSubmitPayload({ noRedirect: false }); }; - // handle clear button clicl. - const handleClearBtnClick = (_event: React.MouseEvent) => { - resetForm(); - }; - // Handle submit & new button click. const handleSubmitAndNewClick = (_event: React.MouseEvent) => { submitForm(); @@ -44,7 +39,7 @@ export function CustomerFloatingActions() { {/* ----------- Save and New ----------- */} - } - minimal={true} interactionKind={PopoverInteractionKind.CLICK} - position={Position.BOTTOM_LEFT} + position={Position.BOTTOM_RIGHT} + minimal >