fix: stop validation when click pervious btn

This commit is contained in:
Abdallah A. Zaqout 2025-11-23 14:09:58 +03:00 committed by GitHub
parent 091e12324e
commit e934fe2782
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,9 +103,9 @@ 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();
// let is_validated = me.validate_section();
if (!is_validated) return false;
// if (!is_validated) return false;
/**
The eslint utility cannot figure out if this is an infinite loop in backwards and