Comments (4)
Hmm Mark
Are you able to get me a code snippet?
I'll try it tomorrow morning
Thanks!
On Tue, Jul 26, 2016 at 9:46 PM, Mark Simon <[email protected]mailto:[email protected]> wrote:
Now getting:
warning.js:44 Warning: Unknown props validate, rules on tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop
in input
in span
in div
in ValidatedInput (created by _class)
in div (created by _class)
in div (created by _class)
in div (created by _class)
in _class (created by RouterContext)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/4, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AL3Ngnemz7gqPPBuYkrFTzaatZJaMmlZks5qZuKkgaJpZM4JV1LX.
from react-validated-input.
Nothing special: (it might be my ES6 build environment again..) Thx!!
import Input, * as inputHelper from 'react-validated-input'
...
<Input type="text" validate={this.state.validation} instance={this.state.valiData}
placeholder="Email"
propertyKey="email"
rules={{presence: true, length: {minimum: 2}}}>
<Input type="password" validate={this.state.validation} instance={this.state.valiData}
placeholder="Password"
propertyKey="password"
rules={{presence: true, length: {minimum: 2}}}></Input>
<Button bsStyle='success' onClick={this.doValidate}>Login</Button>
...
doValidate() {
inputHelper.validate(this, [this.state.valiData]).then(() => {
// console.log('no errors ');
this.handleValidSubmit();
},
(errorMessages) => {
console.log('errorMessages ', errorMessages);
Util.showAlert('invalid');
}
).catch(Util.catchError);
}
from react-validated-input.
updated and published version 0.0.1
the issue was seen because react version 15 added more validations. removed the redundant props
from react-validated-input.
awesome; fixed!
from react-validated-input.
Related Issues (4)
- Install issue HOT 3
- Usage examples HOT 2
- uncontrolled input element HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-validated-input.