gatsby-core-theme 44.5.3 → 44.5.4
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [44.5.4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.5.3...v44.5.4) (2025-10-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* optional errorMsg on form fields ([bb905cd](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/bb905cdea59361e1e7a6538e0f8f836cd434de2b))
|
|
7
|
+
|
|
1
8
|
## [44.5.3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.5.2...v44.5.3) (2025-10-29)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -200,10 +200,11 @@ const getField = (field, handleChange, elements, state) => {
|
|
|
200
200
|
name={id}
|
|
201
201
|
id={id}
|
|
202
202
|
aria-describedby={id}
|
|
203
|
-
onChange={e => setRating(e.target.value)}
|
|
204
|
-
value={rating}
|
|
203
|
+
onChange={(e) => setRating(e.target.value)}
|
|
204
|
+
value={rating}
|
|
205
|
+
/>
|
|
205
206
|
</label>
|
|
206
|
-
{field
|
|
207
|
+
{field?.errorMsg && rating === "0" && (
|
|
207
208
|
<span className={styles.errorMsg}>{field.errorMsg}</span>
|
|
208
209
|
)}
|
|
209
210
|
</>
|
|
@@ -257,7 +258,7 @@ const getField = (field, handleChange, elements, state) => {
|
|
|
257
258
|
<div className={styles.inputGroup || ""}>
|
|
258
259
|
{icon}
|
|
259
260
|
{inputElement}
|
|
260
|
-
{field
|
|
261
|
+
{field?.error?.errorMsg && (
|
|
261
262
|
<span className={styles.errorMsg}>
|
|
262
263
|
{useTranslate(field.error?.translationKey, field.error?.errorMsg)}
|
|
263
264
|
</span>
|
|
@@ -266,7 +267,7 @@ const getField = (field, handleChange, elements, state) => {
|
|
|
266
267
|
) : (
|
|
267
268
|
<>
|
|
268
269
|
{inputElement}
|
|
269
|
-
{field
|
|
270
|
+
{field?.error?.errorMsg && (
|
|
270
271
|
<span className={styles.errorMsg}>
|
|
271
272
|
{useTranslate(field.error?.translationKey, field.error?.errorMsg)}
|
|
272
273
|
</span>
|