From d8b6a6d4987591f379b60aefd4a23c4b34431363 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 3 Dec 2025 22:49:52 +0000 Subject: [PATCH] Fix Form_Utils selector: $sid in templates becomes data-sid in DOM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/RSpade/Core/Js/Form_Utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/RSpade/Core/Js/Form_Utils.js b/app/RSpade/Core/Js/Form_Utils.js index e835f436b..c05d3f1de 100755 --- a/app/RSpade/Core/Js/Form_Utils.js +++ b/app/RSpade/Core/Js/Form_Utils.js @@ -107,7 +107,7 @@ class Form_Utils { // Resolve the promise once all animations are complete Promise.all(animations).then(() => { // Scroll to error container if it exists - const $error_container = $parent.find('[$sid="error_container"]').first(); + const $error_container = $parent.find('[data-sid="error_container"]').first(); if ($error_container.length > 0) { const container_top = $error_container.offset().top; @@ -345,7 +345,7 @@ class Form_Utils { */ static _apply_combined_error($parent, summary_msg, unmatched_errors) { const animations = []; - const $error_container = $parent.find('[$sid="error_container"]').first(); + const $error_container = $parent.find('[data-sid="error_container"]').first(); const $target = $error_container.length > 0 ? $error_container : $parent; // Create alert with summary message and bulleted list of unmatched errors @@ -386,7 +386,7 @@ class Form_Utils { const animations = []; // Look for a specific error container div (e.g., in Rsx_Form component) - const $error_container = $parent.find('[$sid="error_container"]').first(); + const $error_container = $parent.find('[data-sid="error_container"]').first(); const $target = $error_container.length > 0 ? $error_container : $parent; if (typeof messages === 'string') {