@bigfishtv/react-forms
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -67,10 +67,6 @@ 'use strict'; | ||
get: function get() { | ||
(0, _invariant2.default)(this.props.formValue || this.context.formValue, 'A form component <%s /> should receive form value via props ' + 'or be used as a part of element hierarchy which ' + 'provides form value via context.', this.constructor.displayName || this.constructor.name); | ||
var formValue = this.props.formValue || this.context.formValue; | ||
if (this.props.formValue) { | ||
return this.props.formValue; | ||
} | ||
(0, _invariant2.default)(formValue, 'A form component <%s /> should receive form value via props ' + 'or be used as a part of element hierarchy which ' + 'provides form value via context.', this.constructor.displayName || this.constructor.name); | ||
var formValue = this.context.formValue; | ||
var select = this.props.select || this.props.selectFormValue; | ||
@@ -77,0 +73,0 @@ // We check for select !== true to keep compatability we eariler |
{ | ||
"name": "@bigfishtv/react-forms", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Forms library for React", | ||
@@ -9,3 +9,4 @@ "homepage": "https://github.com/bigfishtv/react-forms", | ||
"test": "make test-cov", | ||
"prepublish": "make clean && make" | ||
"prepublish": "make clean && make", | ||
"postpublish": "git push --follow-tags" | ||
}, | ||
@@ -12,0 +13,0 @@ "babel": { |
# React Forms (@bigfishtv fork) | ||
**Note: This fork of React Forms will be maintained to suit the internal projects of [bigfishtv](https://github.com/bigfishtv). At the moment | ||
[![npm version](https://badge.fury.io/js/%40bigfishtv%2Freact-forms.svg)](https://badge.fury.io/js/%40bigfishtv%2Freact-forms) | ||
**Note: This fork of [React Forms](https://github.com/prometheusresearch/react-forms) will be maintained to suit the internal projects of [bigfishtv](https://github.com/bigfishtv). At the moment | ||
there is feature parity with react-forms@2.0.0-beta35, with some changes to support React 15.5** | ||
Notable changes | ||
- Use PropTypes from 'prop-types' instead of React.PropTypes | ||
- `<Field />` uses empty string instead of null/undefined for `<input />` components to prevent React 15.4 warning about uncontrolled -> controlled inputs. | ||
- Prevent spreading unnecessary props on child components | ||
--- | ||
@@ -7,0 +13,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
337890
318
2657