givanz / Vvveb

Powerful and easy to use cms to build websites, blogs or ecommerce stores.
https://www.vvveb.com
GNU Affero General Public License v3.0
384 stars 82 forks source link

On opening Editor right side panel show JS error #156

Closed Shofiul-Alam closed 4 months ago

Shofiul-Alam commented 4 months ago

When clicking save as to save current template with a different name following error is coming up.

image

Also I did not found any element input[data-v-filename]. I changed as follows in the builder.js file and it worked. Please do a review.

image
    document.querySelector("#save-offcanvas [data-v-filename]").innerHTML = filename;
    // document.querySelector("#save-offcanvas input[data-v-filename]").val(filename);
    document.querySelector("#save-offcanvas input[data-v-basename]").value = filename;
    document.querySelector("#save-offcanvas [data-v-theme-folders]").value = folder;
givanz commented 4 months ago

Thank you for the bug report, it's fixed in the last commit https://github.com/givanz/Vvveb/commit/fa2d148b920fcc02e25b3387de1da60cb466facb

Shofiul-Alam commented 4 months ago

@givanz Many many thanks.