Aesop Wolf
2b249113d8
feat: expose inner element when using HOC ( #399 )
...
Use `innerRef={(c) => { this.myInput = c; }}` on your HOC to access the internal element
2016-12-08 22:24:19 -08:00
Semigradsky
d6950885a1
Fixed #298 : RangeError: Maximum call stack size exceeded with custom validator
2016-07-05 11:36:06 +03:00
Semigradsky
1800442ea1
Fixed #361 : Unknown props `onValidSubmit`, `onSubmitted` on <form> tag
2016-07-05 10:54:18 +03:00
Vladimir Guguiev
9e923dd0dc
Use better names for components wrapped into HOC
...
Currently the `displayName` of the component wrapped into HOC looks like `Constructor`, which isn't very descriptive.
This PR introduces a better `displayName` for such components: `Formsy(ComponentName)`
2016-06-11 13:21:44 +02:00
Semigradsky
6767a6b9eb
Fix: Cannot reset value unless truthy
2016-04-21 13:05:47 +03:00
Semigradsky
112819f699
Update dependencies. Some minor changes.
2016-04-19 11:12:14 +03:00
Stephen Demjanenko
1df3e3520f
Formsy.Form: omit Formsy-only props from the `<form/>` component
2015-12-10 09:38:01 -08:00
Semigradsky
d5268a4eef
Added mapping to `getModel()`
2015-12-08 13:10:48 +03:00
Semigradsky
dcac495d79
Renamed `this.updateModel` to `this.getModel`
2015-12-07 13:56:47 +03:00
Semigradsky
c4fa202ebf
Fix `component[Will|Did]Update` behavior. Build release.
2015-12-02 16:50:06 +03:00
Semigradsky
7481b6da64
Fix #267
2015-12-02 16:39:39 +03:00
Dmitry Semigradsky
f67f8317c9
Merge pull request #252 from neoziro/patch-2
...
Prevent multiple rendering with PureRenderMixin
2015-11-05 13:43:10 +03:00
Greg Bergé
6bcdb61b27
Prevent multiple rendering with PureRenderMixin
...
Creating a new instance of error triggers two additional rendering when typing in an input, using same instance prevent it to happen.
2015-10-28 12:48:46 +01:00
adam.dymowski
2a384f40a6
Fix: Form.validationErrors disables input validation #239
2015-10-19 16:19:03 +02:00
Mayank Agarwal
6f2a21e3ef
fix extending props in HOC.
2015-10-06 11:25:59 +05:30
Christian Alfoni
2846f0fadd
Refactored tests and made React 0.14 friendly
2015-10-04 17:40:58 +02:00
Christian Alfoni
404f696bfb
Merge pull request #211 from LestaD/patch-1
...
Add display name
2015-10-02 14:55:41 +02:00
Christian Alfoni
0c5e927f8b
Merge pull request #205 from christianalfoni/isAlphanumeric
...
Added new validation rules: `isAlphanumeric`, `isInt`, `isFloat`
2015-10-02 14:42:46 +02:00
Sergey Sova
32aac21a4e
Add display name
2015-09-18 15:01:07 +03:00
Semigradsky
a96f5246e7
Added new validation rules: `isAlphanumeric`, `isInt`, `isFloat`
2015-09-11 11:02:35 +03:00
Ryan Blakeley
6b521d35e7
removed obsolete method call, fix #196
2015-09-04 10:35:47 -06:00
Ryan Blakeley
c311e144fb
fix #196
2015-09-04 10:27:14 -06:00
Bret Little
882eaa1801
Pass through props inside the decorator
...
This allows custom properties on inputs. Example:
<Input label="What is your first name?" name='firstName' required/>
The property label is now available within a custom input:
export default class Input extends React.Component {
render() {
return (
<div className="form-group">
<label>{this.props.label}</label>
<input type="text" className="form-control"/>
</div>
)
}
}
2015-09-01 18:00:06 -06:00
David Blurton
c0fa87f5cb
Merge branch 'master' into react-0.14
...
Conflicts:
package.json
2015-08-31 13:01:27 +00:00
christianalfoni
619a85657f
Merge branch 'react-0.14' of https://github.com/christianalfoni/formsy-react into react-0.14
2015-07-26 15:09:17 +02:00
christianalfoni
82edabde15
added HOC and decorators
2015-07-26 15:06:46 +02:00
Reinier Guerra
31e9590172
Update main.js
2015-07-10 11:18:44 -04:00
Reinier Guerra
8691866c0d
Update main.js
2015-07-09 23:32:23 -04:00
Semigradsky
357f4adf71
`getErrorMessages` should return empty array when there are no errors
2015-07-09 12:53:26 +03:00
Semigradsky
89759fefde
Fix showing multiple error messages
2015-07-09 11:35:52 +03:00
christianalfoni
818b1defbf
Initial commit for new version
2015-07-07 19:31:14 +02:00
Christian Alfoni
4279dd59a2
Merge pull request #153 from garbin/master
...
* Fixed mapModel issue when input name is nested
2015-07-06 11:57:13 +02:00
Garbin Huang
958bd98223
* Fixed mapModel issue when input name is nested
2015-07-01 12:36:45 +08:00
Semigradsky
c37c053a66
Made passing all props, except `onSubmit`
2015-06-23 12:54:57 +03:00
Semigradsky
0395f61233
Changed validation behaviour
2015-06-03 13:10:02 +03:00
christianalfoni
d7e7dfc55e
Reverted passing of all props, only added autoComplete
2015-05-22 16:20:34 +02:00
christianalfoni
a1cf2236df
Prepared new release
2015-05-22 14:46:45 +02:00
christianalfoni
dbb0653a2b
Merge branch 'master' of https://github.com/christianalfoni/formsy-react
2015-05-22 13:21:06 +02:00
christianalfoni
23f91c4373
Pull request for isChanged
2015-05-22 13:21:03 +02:00
Tomas Holas
2ef73a2ec2
Merge remote-tracking branch 'upstream/master'
2015-05-16 13:10:16 +02:00
Alex Vaos
5b2ca883f3
typeo in error message
2015-05-15 10:59:16 -07:00
Semigradsky
49d7d39005
💄 cleanup
2015-05-11 13:48:22 +03:00
Evan Seguin
5ae260820e
adding tests and fixing a bug where an error would be thrown when comparing an object and null
2015-05-08 09:28:58 -07:00
Evan Seguin
effa9de53f
Adding type checks to prevent errors resulting from assuming two object properties are of the same
...
type
2015-05-07 11:49:41 -07:00
Evan Seguin
d225fa3d2b
adding an undefined check to the isSame function
2015-05-07 11:34:16 -07:00
Tomáš Holas
9ab0acff82
Allow form to be initialised with specified data
...
Modify reset function so that it accepts argument with data model that the form should be initialised with. This comes handy when you want to edit an object to have the form prefilled with object data by just passing the object to reset function instead of filling the fields manualy.
2015-05-04 22:22:05 +02:00
Semigradsky
f168b53a10
Add some validation rules
2015-04-29 16:35:53 +03:00
christianalfoni
37018b10fa
Merged pull, fixed equality bug and added tests
2015-04-29 14:57:51 +02:00
Semigradsky
9a7bff0e03
Removed 'required' check from validations
2015-04-27 12:29:23 +03:00
christianalfoni
9b2d9598e8
added pull request and created tests and documentation
2015-04-25 12:20:39 +02:00