[Help] Button Not Working On Custom Signup Lightbox

Scenario:

  1. Followed this article to setup custom signup: https://support.wix.com/en/article/wix-code-tutorial-creating-a-custom-registration-form-with-code

  2. I created a lightbox to put a signup form on it

  3. I added page code for this lightbox as below (Refer to Page Code below)

  4. Click event being fired correctly on “Preview” mode

  5. However, once I publish it, the click event won’t fired properly on live site.

  6. If I disconnect this lightbox from custom signup, and used it for a regular purpose, the click event would be fired properly in lightbox.

  7. Here is my site: Mysite
    Issue occurred on Chrome and Safari both.

Any advice is appreciated! It bother me for a couple days now, and this is a launch blocker for my site.

(I used the console log to differentiate whether click event being fired.)
Page Code:

import wixUsers from ‘wix-users’;
import wixLocation from ‘wix-location’;

$w.onReady( function () {
console.log(“Ready”);

$w('#submit').onClick(() => { 
    console.log("Click!"); 
    wixUsers.register($w('#email').value, $w('#password').value).then((result) => { 
        console.log("asdlfkj"); 
    }); 
}); 

});