set component interaction in loop
...only when an interaction was handled
This commit is contained in:
5
.changeset/fifty-vans-fold.md
Normal file
5
.changeset/fifty-vans-fold.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"reacord": patch
|
||||
---
|
||||
|
||||
fix interaction handling
|
||||
@@ -47,14 +47,12 @@ export abstract class Renderer {
|
||||
}
|
||||
|
||||
handleComponentInteraction(interaction: ComponentInteraction) {
|
||||
this.componentInteraction = interaction
|
||||
|
||||
setTimeout(() => {
|
||||
this.updates.next({ action: "deferUpdate", interaction })
|
||||
}, 500)
|
||||
|
||||
for (const node of this.nodes) {
|
||||
if (node.handleComponentInteraction(interaction)) {
|
||||
this.componentInteraction = interaction
|
||||
setTimeout(() => {
|
||||
this.updates.next({ action: "deferUpdate", interaction })
|
||||
}, 500)
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user