File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -251,17 +251,15 @@ class ComponentCascadeDot {
251
251
}
252
252
253
253
select ( element , stack ) {
254
+ let nodes = JSON . parse ( element . getAttribute ( 'data-nodes-id' ) ) ;
255
+ this . selectToChildren ( stack + 1 , nodes ) ;
256
+
254
257
let currentStackDocuments = this . STACKS [ stack ] . childNodes ;
255
258
let key = parseInt ( element . getAttribute ( 'data-id' ) ) ;
256
259
currentStackDocuments . forEach ( ( D , index ) => {
257
- if ( key == D . key ) {
258
- currentStackDocuments [ index ] . classList . add ( 'dlp-label-active' ) ;
259
- return ;
260
- }
261
260
currentStackDocuments [ index ] . classList . remove ( 'dlp-label-active' ) ;
262
261
} ) ;
263
- let nodes = JSON . parse ( element . getAttribute ( 'data-nodes-id' ) ) ;
264
- this . selectToChildren ( stack + 1 , nodes ) ;
262
+ element . classList . add ( 'dlp-label-active' ) ;
265
263
}
266
264
267
265
selectToParent ( node ) {
You can’t perform that action at this time.
0 commit comments