From 8f0a78a7d4a894bad065e571199ba3a40b6837ae Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Tue, 3 Aug 2021 09:48:49 +0200 Subject: [PATCH] Fixed warning: key property for editor widgets --- src/editor/Editor.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/Editor.jsx b/src/editor/Editor.jsx index 3f4ae34..05886b3 100644 --- a/src/editor/Editor.jsx +++ b/src/editor/Editor.jsx @@ -323,6 +323,7 @@ export default class Editor extends Component {
{widgets.map((widget, idx) => React.cloneElement(widget, { + key: `${idx}`, focus: idx === 0, annotation : currentAnnotation, readOnly : this.props.readOnly,