Skip to content

Commit e77efba

Browse files
committed
fix scrolling on title input
1 parent b98bc93 commit e77efba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

geonode_mapstore_client/client/js/plugins/MetadataEditor/components/_widgets/TextWidgetMultiLang.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const TextWidgetMultiLang = (props) => {
1818

1919
const { formData, onChange, schema, required, formContext } = props;
2020

21-
const id = props.id || Math.random().toString(36).substring(7);
21+
const id = props.idSchema?.$id;
2222
const { title, description } = schema;
2323

2424
const languages = Object.keys(schema?.properties);
@@ -70,6 +70,7 @@ const TextWidgetMultiLang = (props) => {
7070
/>
7171
) :
7272
<input
73+
id={id}
7374
type="text"
7475
className="form-control"
7576
value={values[currentLang] || ""}

0 commit comments

Comments
 (0)