Giter Club home page Giter Club logo

Comments (4)

Jishun avatar Jishun commented on July 19, 2024

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.

msimonc avatar msimonc commented on July 19, 2024

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.

Jishun avatar Jishun commented on July 19, 2024

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.

msimonc avatar msimonc commented on July 19, 2024

awesome; fixed!

from react-validated-input.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.