Skip to content

Commit

Permalink
Fix a bug for cases where a portion of a JST tree are saved and reins…
Browse files Browse the repository at this point in the history
…erted into a new tree at the same location
  • Loading branch information
efunneko committed Nov 23, 2022
1 parent 330868f commit 8f4cc82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jst-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,11 @@ export class JstElement {

// console.log("CAC>" + " ".repeat(level*2), this.tag + this.id, newJst.tag+newJst.id);

// Check to see if this the old and new node are the same
if (this.id == newJst.id) {
return false;
}

// First check the attributes, props and events
// But only if we aren't the topNode
if (!topNode) {
Expand Down

0 comments on commit 8f4cc82

Please sign in to comment.