If you follow the tutorial on Lock for Web/Overview, and copy the following code that is under “More Examples; Lock (Modal)”:
All seems to work. However, if you supply the option “allowForgotPassword” (‘true’ or ‘false’), the js crashes… I tried several other options, but they all worked. So it looks like it only happens for that option:
The errors that will be logged are as follows:
In the unminified file, it appears to happen in the following function:
Can this bug please be fixed? I’m working on a project that needs a modal without the forgot-password option.