From f5d2f023bfb127064eb004e4a72b15fd1139fa27 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 1 Jan 2023 04:21:17 +0100 Subject: [PATCH] Added the defaultValue to the TextBox component --- admin/src/common/components/TextBox/TextBox.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/src/common/components/TextBox/TextBox.jsx b/admin/src/common/components/TextBox/TextBox.jsx index e270e51..9e4d76f 100644 --- a/admin/src/common/components/TextBox/TextBox.jsx +++ b/admin/src/common/components/TextBox/TextBox.jsx @@ -7,7 +7,8 @@ export const TextBox = (props) => { return (
+ onChange={props.onUpdate} type={props.type || "text"} autoComplete={props.autoComplete} + data-form-type={props.autoComplete === "off" ? "other" : ""} defaultValue={props.default}/> {props.icon && }
);