@modernman00/shared-js-lib 1.2.69 โ 1.2.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AcctMgt/processAll.js +2 -2
- package/FormHelper.js +4 -6
- package/config/version.php +1 -1
- package/package.json +1 -1
- package/release-history.md +18 -0
package/AcctMgt/processAll.js
CHANGED
|
@@ -41,8 +41,8 @@ export const loginSubmission = async ({
|
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
const notificationElement = id(`${formId}_notification`) || formInput;
|
|
45
|
+
notificationElement.scrollIntoView({ behavior: 'smooth' });
|
|
46
46
|
|
|
47
47
|
showLoader();
|
|
48
48
|
localStorage.setItem('redirect', redirect);
|
package/FormHelper.js
CHANGED
|
@@ -109,8 +109,9 @@ export default class FormHelper {
|
|
|
109
109
|
const { name, value, id, type, placeholder } = input;
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
// Skip non-input elements
|
|
112
|
+
// Skip elements without IDs or non-input elements
|
|
113
113
|
if (
|
|
114
|
+
!id ||
|
|
114
115
|
['submit', 'button', 'g-recaptcha-response', 'cancel'].includes(name) ||
|
|
115
116
|
['button', 'showPassword', 'token', 'g-recaptcha-response'].includes(id) ||
|
|
116
117
|
type === 'button' || optionalFields.includes(id) ||
|
|
@@ -185,13 +186,10 @@ export default class FormHelper {
|
|
|
185
186
|
};
|
|
186
187
|
|
|
187
188
|
this.data.flat().forEach(({ id, name, value }) => {
|
|
188
|
-
if (['submit', 'button', 'token', 'checkbox'].includes(id) || ['token', 'submit'].includes(name)) return;
|
|
189
|
+
if (!id || ['submit', 'button', 'token', 'checkbox'].includes(id) || ['token', 'submit'].includes(name)) return;
|
|
189
190
|
|
|
190
191
|
const element = this.id(id);
|
|
191
|
-
if (!element)
|
|
192
|
-
console.error(`Element with ID '${id}' and post name '${name}' not found.`);
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
192
|
+
if (!element) return; // Silently skip elements not found
|
|
195
193
|
|
|
196
194
|
// Add event listeners to clear errors
|
|
197
195
|
const clearErrorHandler = () => clearErrorForElement(id || name);
|
package/config/version.php
CHANGED
package/package.json
CHANGED
package/release-history.md
CHANGED
|
@@ -71,3 +71,21 @@
|
|
|
71
71
|
|
|
72
72
|
- ๐ Bump version to v1.2.66 _(by modernman00)_
|
|
73
73
|
- ๐งน Auto-commit before release _(by modernman00)_
|
|
74
|
+
|
|
75
|
+
## v1.2.71 โ 2026-05-07 18:15
|
|
76
|
+
### Changelog for v1.2.71
|
|
77
|
+
|
|
78
|
+
- ๐ Bump version to v1.2.71 _(by modernman00)_
|
|
79
|
+
- ๐งน Auto-commit before release _(by modernman00)_
|
|
80
|
+
- ๐งน Auto-commit before release _(by modernman00)_
|
|
81
|
+
- ๐งน Auto-commit before release _(by modernman00)_
|
|
82
|
+
- ๐งน Auto-commit before release _(by modernman00)_
|
|
83
|
+
- ๐งน Auto-commit before release _(by modernman00)_
|
|
84
|
+
- ๐งน Auto-commit before release _(by modernman00)_
|
|
85
|
+
- ๐งน Auto-commit before release _(by modernman00)_
|
|
86
|
+
|
|
87
|
+
## v1.2.72 โ 2026-05-07 19:00
|
|
88
|
+
### Changelog for v1.2.72
|
|
89
|
+
|
|
90
|
+
- ๐ Bump version to v1.2.72 _(by modernman00)_
|
|
91
|
+
- ๐งน Auto-commit before release _(by modernman00)_
|