Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(SchemaField): correctly change stateful error class name string #502

Merged
merged 2 commits into from
Mar 2, 2017

Conversation

elisechant
Copy link
Contributor

Fixes #501

@glasserc
Copy link
Contributor

glasserc commented Mar 2, 2017

Thanks for your contribution! I think a couple of tests need to be updated too, although I can't see the Travis error output for some reason.

@glasserc
Copy link
Contributor

glasserc commented Mar 2, 2017

I just noticed that the version of Bootstrap we use is 3.3.6, and in that version, .has-error is correct. See http://getbootstrap.com/css/#forms-control-validation.

@elisechant
Copy link
Contributor Author

@glasserc sorry, adding both has-error as well as has-danger to support Bootstrap 3 and 4. How do you feel about that?

@elisechant
Copy link
Contributor Author

elisechant commented Mar 2, 2017

@glasserc tests passing for me:

screen shot 2017-03-02 at 12 39 51 pm

I can't see any specific test for that piece of code. Maybe I should write one?

@n1k0
Copy link
Collaborator

n1k0 commented Mar 2, 2017

Existing tests for error handling are written matching the .field-error selector, so we're safe here. Merging.

@n1k0 n1k0 merged commit 25cdb7f into rjsf-team:master Mar 2, 2017
@glasserc
Copy link
Contributor

glasserc commented Mar 2, 2017

Related to #299.

n1k0 added a commit that referenced this pull request Mar 21, 2017
New features

* Add support for rows attribute of textarea widget. (#450)
* #434 - Render empty array item fields when minItems is specified (#484)
* Add a "has-danger" class to the form error list (#502)
* Show description for boolean fields (#498)
* Fix #488: Add a custom Form ErrorList prop.

Bugfixes

* Fix impossibility to use stateful ArrayFieldTeplate comp. (#519)
* Centralized shouldComponentUpdate handling in SchemaField (#490)
@n1k0
Copy link
Collaborator

n1k0 commented Mar 21, 2017

Released in v0.44.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants