Hamsterwork
Hamsterwork
Well, I got working configuration. Prerequisites: Laravel 8, Laravel Mix 6 `npm install @tabler/core choices.js litepicker nouislider` Then in resources/js/bootstrap.js: ``` window.bootstrap = require('bootstrap'); import Choices from 'choices.js'; import Litepicker...
Maybe it's obvious and not necessary, but here is small copy-paste piece, re-creating equals validator while problem is resolved. ``` Pristine.addValidator( 'equals', function (val, otherFieldSelector) { var other = document.querySelector(otherFieldSelector);...
You can't simple continue submitting form after `e.preventDefault()`. But you can use this workaround: ``` form.addEventListener('submit', function (e) { var valid = pristine.validate(); if (!valid){ e.preventDefault(); return false; } });...