-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lodash doesn't seem correctly configured, can't submit with errors #51
Comments
I needed to move the following scripts to the header in order for it to work.
|
Something in this method or sub-methods was throwing an error stating that it could not find _.reject(). I found this by adding the alert statement to the catch.
To fix this, I had to replace the following.
with this
Hope this helps. |
I select an Instructor, go to the Edit page and clear everything out and hit save.
I then get a script error what _.reject() is not a function in showSummary().
I looked at your normal Contoso repo (I didn't pull/test) and noticed that the lodash folder has many more files in it instead of only core.js. I didn't see a libman.json to try and update the libraries, so not sure if I'm missing something and didn't build correctly (just hit F5 and it worked) or if there is a problem with the script.
Additionally, if I instead of clearing all inputs and submitting, I just append the letter 'a' to the date hire and submit. It submits successfully, redirects to listing page, but did not display error nor save bad data.
Side question when you look at this. Trying to understand where the ajax call submits to when clicking submit on Edit page. The form.action is
undefined
and I put break points in all the methods in CreateEdit.cshtml.cs and never hit any of them.The text was updated successfully, but these errors were encountered: