Skip to content
Snippets Groups Projects
Commit fe6b04b4 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 'fix-main-element-highlight' into 'master'

Prevent the ChildrenTree from highlighting the parent element

Closes #751

See merge request !1036
parents 4b1e370d 83005887
No related branches found
No related tags found
1 merge request!1036Prevent the ChildrenTree from highlighting the parent element
......@@ -188,7 +188,7 @@ export default {
this.setHighlightedBulk({ parentId: this.element.id, ids: removedElts, highlight: false })
// Highlight added elements
if (!this.imageShow) return
const addedElts = newList.filter(id => !oldList.includes(id))
const addedElts = newList.filter(id => !oldList.includes(id) && id !== this.element.id)
this.setHighlightedBulk({ parentId: this.element.id, ids: addedElts })
},
imageShow: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment