Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fixing menu placesment issues

Ilian Sapundshiev106aedc85199
diff --git a/app/components/TagLibrary.js b/app/components/TagLibrary.js
index 129346882..9aaf4f87d 100644
--- a/app/components/TagLibrary.js
+++ b/app/components/TagLibrary.js
@@ -259,7 +259,7 @@ class TagLibrary extends React.Component<Props, State> {
if (this.props.isReadOnlyMode) {
return (
<TagContainer
- key={uuidv1()}
+ key={tagGroup.uuid + tag.title}
tag={tag}
tagGroup={tagGroup}
handleTagMenu={this.handleTagMenu}
@@ -271,7 +271,7 @@ class TagLibrary extends React.Component<Props, State> {
}
return (
<TagContainerDnd
- key={uuidv1()}
+ key={tagGroup.uuid + tag.title}
tag={tag}
tagGroup={tagGroup}
handleTagMenu={this.handleTagMenu}
diff --git a/app/perspectives/grid-perspective/components/CellContent.js b/app/perspectives/grid-perspective/components/CellContent.js
index c96dd3495..c21bee779 100644
--- a/app/perspectives/grid-perspective/components/CellContent.js
+++ b/app/perspectives/grid-perspective/components/CellContent.js
@@ -275,7 +275,7 @@ const CellContent = (props: Props) => {
return isReadOnlyMode ? (
<TagContainer
tag={tag}
- key={fsEntry.path + tag}
+ key={fsEntry.path + tag.title}
entryPath={fsEntry.path}
addTags={addTags}
handleTagMenu={handleTagMenu}
@@ -284,7 +284,7 @@ const CellContent = (props: Props) => {
) : (
<TagContainerDnd
tag={tag}
- key={fsEntry.path + tag}
+ key={fsEntry.path + tag.title}
entryPath={fsEntry.path}
addTags={addTags}
handleTagMenu={handleTagMenu}