From 054bb3032632220f51211d9a221ee084f8eddf21 Mon Sep 17 00:00:00 2001 From: Anton Date: Mon, 9 Oct 2023 23:37:33 +0200 Subject: [PATCH] fix to disable chroms autocomplet on date-inputs --- src/Components/Input/TextInput.tsx | 5 +++-- .../Subcomponents/ItemPopupComponents/PopupStartEndInput.tsx | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Components/Input/TextInput.tsx b/src/Components/Input/TextInput.tsx index 11cf066e..c9b91d8e 100644 --- a/src/Components/Input/TextInput.tsx +++ b/src/Components/Input/TextInput.tsx @@ -10,11 +10,12 @@ type InputTextProps = { inputStyle?: string; defaultValue?: string; placeholder?: string; + autocomplete?: string updateFormValue?: (value: string ) => void; } -export function TextInput({labelTitle, labelStyle, type, dataField, containerStyle, inputStyle, defaultValue, placeholder, updateFormValue} : InputTextProps){ +export function TextInput({labelTitle, labelStyle, type, dataField, containerStyle, inputStyle, defaultValue, placeholder, autocomplete, updateFormValue} : InputTextProps){ return(
@@ -22,7 +23,7 @@ export function TextInput({labelTitle, labelStyle, type, dataField, containerSty {labelTitle} : " "} - updateFormValue&& updateFormValue(e.target.value)}className={`tw-input tw-input-bordered tw-w-full ${inputStyle ? inputStyle : ""}`} /> + updateFormValue&& updateFormValue(e.target.value)}className={`tw-input tw-input-bordered tw-w-full ${inputStyle ? inputStyle : ""}`} />
) } diff --git a/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.tsx b/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.tsx index 3c4cae9c..6fe081ce 100644 --- a/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.tsx +++ b/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.tsx @@ -5,8 +5,8 @@ import { Item } from '../../../../types' export const PopupStartEndInput = ({item}:{item?:Item}) => { return (
- - + +
) }