I have added a click event only on mobile site with dev mode, it worked fine on preview & I publish it with dev mode. It appeared to be functioning properly on the device when it is freshly published. Once I quit dev mode and made a few changes to the site, the code made on the page would not work. (I didn’t change a thing on that page out of dev mode and I didn’t edit the code as well) When I go back to dev mode to see the preview, it doesn’t work anymore.
Can someone help?
my site: [https://yulokray.wixsite.com/website-2](https://yulokray.wixsite.com/website-2
the)
the page is About Us>How We Grow, mobile page
thanks in advance!!!
Hi there 
It may be related to the fact that your code resides in the masterPage.js file, which is the code file that runs every time you navigate to a page.
// The code in this file will load on every page of your site
$w.onReady(function () {
// Write your code here
});
/**
* Adds an event handler that runs when the element is clicked.
* @param {$w.MouseEvent} event
*/
export function mobileButton1_click(event) {
// This function was added from the Properties & Events panel. To learn more, visit http://wix.to/UcBnC-4
// Add your code for this event here:
$w('#mobileBox1').show('ExpandIn');
}
It may also be because you’re passing an invalid animation type to the show() method, ExpandIn is an invalid animation type, and it also lacks the animation options, try something like this:
$w('#mobileBox1').show('zoom', { duration: 250, delay: 0 });
Also, double-check that the mobile box has its onClick event handler activated with the same name as in your code.
Hope this helps~!
Ahmad