Scenario:
-
Followed this article to setup custom signup: https://support.wix.com/en/article/wix-code-tutorial-creating-a-custom-registration-form-with-code
-
I created a lightbox to put a signup form on it
-
I added page code for this lightbox as below (Refer to Page Code below)
-
Click event being fired correctly on “Preview” mode
-
However, once I publish it, the click event won’t fired properly on live site.
-
If I disconnect this lightbox from custom signup, and used it for a regular purpose, the click event would be fired properly in lightbox.
-
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");
});
});
});