mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 19:12:01 -08:00
fix: do not toggle/on feature and statements
This commit is contained in:
@@ -12,8 +12,7 @@
|
||||
:rowHover="true"
|
||||
:indentation="1.3"
|
||||
selectionMode="single"
|
||||
@nodeExpand="onNodeSelect"
|
||||
@nodeSelect="onNodeSelect"
|
||||
@node-select="onNodeSelect"
|
||||
:pt="{
|
||||
row: ({ instance }) => ({
|
||||
oncontextmenu: (event) => onRightClick(event, instance)
|
||||
@@ -199,6 +198,9 @@ const onNodeSelect = (node) => {
|
||||
const nodeKey = node.key
|
||||
const nodeType = node.data.type
|
||||
|
||||
// We only expand rule and match locations, if not return
|
||||
if (nodeType !== 'rule' && nodeType !== 'match location') return
|
||||
|
||||
// If the node is already expanded, collapse it and its children
|
||||
if (expandedKeys.value[nodeKey]) {
|
||||
delete expandedKeys.value[nodeKey]
|
||||
|
||||
Reference in New Issue
Block a user