Merge pull request #34846 from zaqoutabed/stop-validation-on-click-previous

fix: stop validation when click pervious btn
This commit is contained in:
Ejaaz Khan 2026-01-22 17:00:18 +05:30 committed by GitHub
commit 9544593caa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,10 +103,6 @@ export default class WebForm extends frappe.ui.FieldGroup {
$(".web-form-footer .left-area").prepend(this.$previous_button);
this.$previous_button.on("click", () => {
let is_validated = me.validate_section();
if (!is_validated) return false;
/**
The eslint utility cannot figure out if this is an infinite loop in backwards and
throws an error. Disabling for-direction just for this section.