Validation error on Modal
June 11, 2018 at 6:40 pmPosts: 109Member Reply #18155
Hi Guys, i got some problem when doing validation with modal. so here’s the step that i did:
1. click add button.
2. modal is open
3. validation is showed with error message.
while it suppose to be like this:
1. click add button
2. modal is open.
3. user click button inside the modal.
4. validation is running to check is it any problem or not.
i’m not sure which part of the theme script that trigger the validation run when modal are open. I’m using the default vendor.js and script.js, i haven’t touch anything. you can take a look the modal html and the js here: https://codepen.io/exodia6666/pen/VdpVPp thanks before.
June 13, 2018 at 10:31 amPosts: 2693Support Staff Reply #18169
What validation error came out? Can you send some of the screenshot?
June 13, 2018 at 10:39 amPosts: 109Member Reply #18172
it’s error in remote and password equal. This is strange when i use my custom vendor.bundle.js the error was gone although i still got error when minimized sidebar. so i think that there is conflict in your default bundle.js. can you guys check that out? it give me error just in remote and password equal, other thing that required doesn’t have any problem. this problem is fixed when i remove some of your jquery component that in my previous ticket.
June 15, 2018 at 8:25 amPosts: 2693Support Staff Reply #18190
The login script is in /src/js/snippets/custom/pages/user/login.js and it bundled together in scripts.bundle.js
Maybe this js file is conflicting with your codes. You can remove the demo login.js file and recompile the assets using gulp.
June 23, 2018 at 6:42 pmPosts: 109Member Reply #18388
Is it all the script in snipset will be merged into script.bundle.js?
June 25, 2018 at 3:46 amPosts: 2693Support Staff Reply #18404
No, not all snippets will be bundled in to scripts.bundle.js.
You can check tools/conf/default.json
These are the directories and files that will be compiled as scripts.bundle.js
You must be logged in to reply to this topic.