This topic contains 5 replies, has 2 voices, and was last updated by Jai Jai 4 months, 3 weeks ago.

Validation error on Modal


  • eko
    Participant

    Posts: 109
    Member 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.

    Jai
    Jai
    Keymaster

    Posts: 2700
    Support Staff Reply #18169

    Hi 🙂

    What validation error came out? Can you send some of the screenshot?

    Thanks


    eko
    Participant

    Posts: 109
    Member 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.

    Jai
    Jai
    Keymaster

    Posts: 2700
    Support Staff Reply #18190

    Hi 🙂

    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.

    Thanks


    eko
    Participant

    Posts: 109
    Member Reply #18388

    Is it all the script in snipset will be merged into script.bundle.js?

    Jai
    Jai
    Keymaster

    Posts: 2700
    Support Staff Reply #18404

    Hi 🙂

    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

    “base”: {
    “src”: {
    “scripts”: [
    “{$config.path.src}/js/framework/base/util.js”,
    “{$config.path.src}/js/framework/base/app.js”,
    “{$config.path.src}/js/framework/components/general/datatable/datatable.js”,
    “{$config.path.src}/js/framework/components/plugins/misc/mdatatable.init.js”,
    “{$config.path.src}/js/framework/components/general/**/*.js”,
    “{$config.path.src}/js/demo/default/base/**/*.js”,
    “{$config.path.src}/js/app/base/**/*.js”,
    “{$config.path.src}/js/snippets/base/**/*.js”
    ]
    },
    “bundle”: {
    “scripts”: “{$config.output}/demo/default/base/scripts.bundle.js”
    }
    },

    Thanks

You must be logged in to reply to this topic.