Skip to content

Commit 91f40ea

Browse files
committed
fix cd lag
1 parent 58e247a commit 91f40ea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ts/ApiPanel.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ export class Panel implements PanelApi {
9191

9292
setItems(items: Item[]) {
9393
this.model.items = items
94-
this.handlers
95-
.filter(handler => handler.onPanelItemsSet)
96-
.forEach(handler => handler.onPanelItemsSet())
94+
setTimeout(() => {
95+
this.handlers
96+
.filter(handler => handler.onPanelItemsSet)
97+
.forEach(handler => handler.onPanelItemsSet())
98+
}, 10)
9799
return this
98100
}
99101

0 commit comments

Comments
 (0)