Skip to content

Commit

Permalink
Fix for undo error #354
Browse files Browse the repository at this point in the history
  • Loading branch information
givanz committed Jun 10, 2024
1 parent ec44917 commit e122685
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libs/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1279,16 +1279,17 @@ Vvveb.Builder = {


selectNode: function(node) {
let self = this;
let SelectBox = document.getElementById("select-box");
let SelectActions = document.getElementById("select-actions");
let AddSectionBtn = document.getElementById("add-section-btn");
let elementType = this._getElementType(node);

if (!node) {
SelectBox.style.display = "none";
return;
}

let self = this;
let SelectActions = document.getElementById("select-actions");
let AddSectionBtn = document.getElementById("add-section-btn");
let elementType = this._getElementType(node);

if (self.texteditEl && (self.selectedEl != node)) {
Vvveb.WysiwygEditor.destroy(self.texteditEl);
Expand Down

0 comments on commit e122685

Please sign in to comment.