diff --git a/ide/src/trace/component/trace/base/TraceRow.ts b/ide/src/trace/component/trace/base/TraceRow.ts index fe33b4c82b56933b1239609e661a550d02fbb4b4..1ac6c0419803ea676f210077db3483bfa8baf36c 100644 --- a/ide/src/trace/component/trace/base/TraceRow.ts +++ b/ide/src/trace/component/trace/base/TraceRow.ts @@ -426,6 +426,12 @@ export class TraceRow extends HTMLElement { this.removeAttribute('check-type'); return; } + if (this.getAttribute('check-type') === value) { + return; + } + if (this.folder) { + this.childrenList.forEach(it => it.checkType = value) + } this.setAttribute('check-type', value); if (this.hasAttribute('disabled-check')) { this.checkBoxEL!.style.display = 'none'; @@ -455,9 +461,6 @@ export class TraceRow extends HTMLElement { this.checkBoxEL!.indeterminate = false; break; } - if (this.folder) { - this.childrenList.forEach(it => it.checkType = value) - } } get drawType(): number {