From 48768c04814bc8f03590416a61d796f3a3c85e57 Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Fri, 20 Mar 2026 18:40:48 +0100 Subject: [PATCH] feat: enhance form components with autoComplete attributes and update ResidenzaSection to set cap_recapiti based on selected comune --- .../src/components/custom_ui/multiselect.tsx | 39 ++++++++++++++++++- .../src/forms/FormProfilo_Account.tsx | 18 +++++++-- .../src/forms/FormProfilo_Anagrafica.tsx | 4 +- .../src/forms/FormServizioAcquisto.tsx | 30 ++++++++++++-- 4 files changed, 81 insertions(+), 10 deletions(-) diff --git a/apps/infoalloggi/src/components/custom_ui/multiselect.tsx b/apps/infoalloggi/src/components/custom_ui/multiselect.tsx index cb34f2b..3b8bdc5 100644 --- a/apps/infoalloggi/src/components/custom_ui/multiselect.tsx +++ b/apps/infoalloggi/src/components/custom_ui/multiselect.tsx @@ -1,12 +1,29 @@ import { useVirtualizer } from "@tanstack/react-virtual"; -import { type JSX, useRef, useState } from "react"; +import { + type HTMLInputAutoCompleteAttribute, + type JSX, + useRef, + useState, +} from "react"; import ReactSelect, { type CSSObjectWithLabel, + components, type GroupBase, + type InputProps, type MenuListProps, } from "react-select"; +import type {} from "react-select/base"; import { cn } from "~/lib/utils"; +declare module "react-select/base" { + export interface Props< + Option, + IsMulti extends boolean, + Group extends GroupBase