fix: do not toggle/on feature and statements

This commit is contained in:
Soufiane Fariss
2024-07-31 00:55:18 +02:00
parent f6bc42540c
commit 0ea6f1e270

View File

@@ -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]