Wix Code Does not work on live site

Hi I create the section Frequently Ask Question With Repeater and then use dev mode to add the functionality of expand and collapsed to each question the problem is it works perfectly fine in Preview mode But does not work in Live Mode

Hello, is your repeater filtering items from your database?

I’m having a similar issue with filtering items for my lightbox and repeaters as of today, I believe Velo released some update that broke this. Some of my websites work, one doesn’t, which doesn’t make sense (same code) but could be explained if they’re running a test version.

the data from repeater is coming form the database and i am using a filter on the database connection so maybe yes

Hi,
I’ve shared your posts with our support team, and someone will be reaching out to you about the issues in the coming days. @sohailahmadpsh , it will help the team if you post your code or share the URL for your site so they can troubleshoot. Thanks in advance!

@marlowe-shaeffer

$w("#Tourdays").forEachItem( ($item, itemData, index) => {
     $item('#expandbtn').onClick(() => {
          
            $item('#expandbtn').hide();
             $item('#collapsedbtn').show();
            $item('#descripation').expand();    
     });
      $item('#collapsedbtn').onClick(() => {
          
            $item('#collapsedbtn').hide();
             $item('#expandbtn').show();
            $item('#descripation').collapse();  
     });
  } );