diff --git a/apps/infoalloggi/src/components/custom_ui/InputNumber.tsx b/apps/infoalloggi/src/components/custom_ui/InputNumber.tsx index a334419..adaf6a5 100644 --- a/apps/infoalloggi/src/components/custom_ui/InputNumber.tsx +++ b/apps/infoalloggi/src/components/custom_ui/InputNumber.tsx @@ -152,6 +152,7 @@ export const NumberInput = forwardRef( className="h-1/2 rounded-l-none rounded-br-none border-input border-b-[0.5px] border-l-0 px-2 focus-visible:relative" disabled={value === max} onClick={handleIncrement} + type="button" variant="outline" > @@ -161,6 +162,7 @@ export const NumberInput = forwardRef( className="h-1/2 rounded-l-none rounded-tr-none border-input border-t-[0.5px] border-l-0 px-2 focus-visible:relative" disabled={value === min} onClick={handleDecrement} + type="button" variant="outline" > diff --git a/apps/infoalloggi/src/components/servizio/admin_conferma.tsx b/apps/infoalloggi/src/components/servizio/admin_conferma.tsx index de58894..c3dbc2f 100644 --- a/apps/infoalloggi/src/components/servizio/admin_conferma.tsx +++ b/apps/infoalloggi/src/components/servizio/admin_conferma.tsx @@ -620,6 +620,7 @@ const StabileSection = () => { Budget (da preferenze servizio): { if (val !== undefined) { @@ -628,7 +629,6 @@ const StabileSection = () => { }} stepper={50} suffix=" €" - value={value} />

diff --git a/apps/infoalloggi/src/forms/FormEditAnnuncio.tsx b/apps/infoalloggi/src/forms/FormEditAnnuncio.tsx index 13ce2ad..f16eabb 100644 --- a/apps/infoalloggi/src/forms/FormEditAnnuncio.tsx +++ b/apps/infoalloggi/src/forms/FormEditAnnuncio.tsx @@ -1004,30 +1004,34 @@ export const AnnuncioEditForm = ({ data }: { data: AnnunciWithMedia }) => { ( - -

- Prezzo{" "} - -
+ render={({ field }) => { + const { value, onChange, ...rest } = field; - - { - field.onChange((v || 0) * 100); - }} - value={Number(field.value) / 100} - /> - - - )} + return ( + +
+ Prezzo{" "} + +
+ + + { + onChange((Number(v) || 0) * 100); + }} + suffix=" €" + /> + +
+ ); + }} /> } children2={ diff --git a/apps/infoalloggi/src/forms/FormPrezzo.tsx b/apps/infoalloggi/src/forms/FormPrezzo.tsx index 6a3528f..b00aa7d 100644 --- a/apps/infoalloggi/src/forms/FormPrezzo.tsx +++ b/apps/infoalloggi/src/forms/FormPrezzo.tsx @@ -409,30 +409,36 @@ export const FormPrezzo = ({ ( - -
- Prezzo - -
- - { - field.onChange((v || 0) * 100); - }} - value={Number(field.value) / 100} - /> - -
- )} + render={({ field }) => { + const { value, onChange, ...rest } = field; + + return ( + +
+ Prezzo{" "} + +
+ + + { + onChange((Number(v) || 0) * 100); + }} + suffix=" €" + /> + +
+ ); + }} /> +