Skip to content

Commit 05890f1

Browse files
Merge pull request #299 from keenon/main
v2.2 - Fixed issue with inputs in profile pages.
2 parents 6c0102e + f79a71a commit 05890f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/pages/profile/ProfileView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ type InputFieldProps = {
7272

7373
const InputField = observer((props: InputFieldProps) => {
7474
let valueField: string = props.userProfile.getAttribute(props.attributeName, "");
75+
7576
return (
7677
<form className="row g-3 mb-15">
7778
<div className="col-md-12">
@@ -84,7 +85,7 @@ const InputField = observer((props: InputFieldProps) => {
8485
type="text"
8586
className="form-control"
8687
placeholder={props.placeholder}
87-
value={valueField}
88+
defaultValue={valueField}
8889
onFocus={(e) => props.userProfile.profileJson.onFocusAttribute(props.attributeName)}
8990
onBlur={(e) => props.userProfile.profileJson.onBlurAttribute(props.attributeName)}
9091
onChange={(e) => props.userProfile.profileJson.setAttribute(props.attributeName, e.target.value)}>

0 commit comments

Comments
 (0)