Skip to content

Commit

Permalink
fix(error-handling): add error class to all Select based questions (#172
Browse files Browse the repository at this point in the history
)

* fix(error-handling): add error class to all Select based questions

* chore: updated CHANGELOG.md

* 3.5.2
  • Loading branch information
pabloelisseo authored Oct 2, 2023
1 parent acdaf17 commit 196ccbb
Show file tree
Hide file tree
Showing 8 changed files with 258 additions and 3 deletions.
251 changes: 251 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@guidesmiths/react-form-builder",
"version": "3.5.1",
"version": "3.5.2",
"description": "React from builder using json schema",
"author": "Guidesmiths",
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions src/Questions/Age/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const QuestionAge = ({ question, useForm, language, ...props }) => {
registerConfig={question.registerConfig}
placeholder={question.placeholder}
label={question.label}
data-haserrors={!!errors[question.name]}
{...props}
>
{renderAgeOptions(ageData)}
Expand Down
2 changes: 1 addition & 1 deletion src/Questions/Autocomplete/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const QuestionAutocomplete = ({ question, useForm }) => {
const response = await fetch(url, {
headers: question.config.headers
})
return await response.json()
return response.json()
}, 350)

return (
Expand Down
1 change: 1 addition & 0 deletions src/Questions/Country/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ const QuestionCountry = ({
registerConfig={question.registerConfig}
placeholder={question.placeholder}
label={question.label}
data-haserrors={!!errors[question.name]}
{...props}
>
{renderCountryOptions(
Expand Down
1 change: 1 addition & 0 deletions src/Questions/County/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const QuestionCounty = ({ question, useForm, ...props }) => {
registerConfig={question.registerConfig}
placeholder={question.placeholder}
label={question.label}
data-haserrors={!!errors[question.name]}
{...props}
>
{renderCountyOptions(options)}
Expand Down
1 change: 1 addition & 0 deletions src/Questions/Genre/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const QuestionGender = ({ question, useForm, language, ...props }) => {
registerConfig={question.registerConfig}
placeholder={question.placeholder}
label={question.label}
data-haserrors={!!errors[question.name]}
{...props}
>
{renderGenderOptions(genderData)}
Expand Down

0 comments on commit 196ccbb

Please sign in to comment.