mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
fix: dont use id for append
This commit is contained in:
parent
f153cdf61a
commit
1b7fe3fcde
1 changed files with 3 additions and 2 deletions
|
@ -89,8 +89,9 @@ export class Interpreter {
|
|||
PopRoot() {
|
||||
this.stack.pop();
|
||||
}
|
||||
AppendChildren(id, many) {
|
||||
let root = this.nodes[id];
|
||||
AppendChildren(many) {
|
||||
// let root = this.nodes[id];
|
||||
let root = this.stack[this.stack.length - 1 - many];
|
||||
let to_add = this.stack.splice(this.stack.length - many);
|
||||
for (let i = 0; i < many; i++) {
|
||||
root.appendChild(to_add[i]);
|
||||
|
|
Loading…
Reference in a new issue