In the editor, "Preview" stopped working. How to fix?
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
My Preview mode stopped working. If I publish the website it's also not working at all.
@Parikshit Jahoorkar Hi. Can you add your site editor URL and the name of the page where you have added the code?
Hi,
I created a dynamic page and added some corvid code. Everything was working fine until I added a google map and location based corvid code. The preview stopped working on the dynamic page. Preview works on other pages. Here's the corvid code I was using (was working until I added location related code):
$w.onReady(function () { //TODO: write your page related code here... $w("#displayReviews").onReady(() => { let count = $w("#displayReviews").getTotalCount(); $w('#reviewsCount').text = (count + " Reviews") }); $w('#reviewRepeater').onItemReady(($item, itemData, index) => { $item('#dateDisplay').text = itemData.review_date.toLocaleDateString("en-US"); }) $w('#getReviews').onBeforeSave(() => { $w('#getReviews').setFieldValue('service', $w('#dataset1').getCurrentItem().service); $w('#getReviews').setFieldValue('review_date', new Date()); }) $w('#getReviews').onAfterSave(() => { $w('#displayReviews').refresh(); }) }); I tried removing all the code and restoring the site to a previous working version, removing the location related elements from the relevant databases the code was trying to look in to, but the problem still exists. I can't make any changes to the page now.
This is the error I get in the browser console (Ctrl + Shift + i) after pressing Preview button.
dropDownBase.js:129 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312
Any suggestions?
Hi, I'm working on this site and preview is not working and can't switch to mobile view. Here is link to the editor. can you please help? https://editor.wix.com/html/editor/web/renderer/edit/877e3bfe-9384-4560-b3e5-a13d9dc52d91?metaSiteId=f38ce84e-1a97-4092-8a83-701a43f125ad&editorSessionId=645a847f-45f3-4806-b48c-96dce99fee6b&referralInfo=dashboard
My Preview is not working and it's not allowing me to acess the Data Set sections.
Hi!
I can't seem to reproduce the issue either.
When I try to use the page I get the console output and no errors.
Please send a screenshot if you encounter it again.
Doron.
https://editor.wix.com/html/editor/web/renderer/edit/c91d4d06-b092-4c92-8302-3d4abc3086c4?metaSiteId=d3045c22-e30d-45d1-bddb-f5f41d4fa1d6&editorSessionId=9FE56F5C-2B65-4FFF-9521-311F12A66C8C
any online store has a showcase and on click - a detailed description. I can not reproduce this. The base blocks itself.
Hi!
Please share a link to your site so I can inspect it regarding the issue and provide you with a solution.
Doron. :)
Thanks, but it did not help. When I connected the error handling, I received a message
DatasetError: The "setCurrentItemIndex" function cannot be called on the dataset because the dataset was selected using a repeated item scope selector.
Hi!
Try and change the first row of your code into this:
let n = Number($w("#text1").text);
and please eliminate all the un required gaps from your code. It may cause you errors.
Doron.
Thank you, the problem is gone. Will not you help me to solve one more? On the page there is a repeater with one template connected to the database "# dataset1", which allows you to display the entire collection. Next, I would like to click on the image and show more detailed information on the selected element of the database. In one of the fields in the database "# dataset1" I wrote down the sequence numbers of the elements of the database, and the text of the repeater pattern "# text1" was connected to this field. In processing the image click, I wrote this script
let n = Number.parseInt ($ w ("# text1"). text);
console.log (n);
$ w ("# dataset1"). setCurrentItemIndex (n);
console.log ($ w ("# dataset1"). getCurrentItemIndex ());
But in spite of the fact that "n" is always transmitted correctly, getCurrentItemIndex ()) always returns "0". The database always starts with the first element. What am I doing wrong? Tell me please
Hi!
Do you still experience this issue?
If so, Please share with us a link to your editor so one of our Wix Team can inspect your site and provide you with a solution.
Note that only Wix workers are authorized to inspect your site.
Doron. :)